-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEEBTPTag.h
61 lines (48 loc) · 1.29 KB
/
EEBTPTag.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/*
* EEBTPTag.h
*
* Created on: 15.06.2020
* Author: krassus
*/
#ifndef SCRATCH_BROADCAST_EEBTPTAG_H_
#define SCRATCH_BROADCAST_EEBTPTAG_H_
#include <iostream>
#include "ns3/tag.h"
#include "ns3/packet.h"
#include "ns3/wifi-mode.h"
namespace ns3
{
class EEBTPTag : public Tag
{
public:
static TypeId GetTypeId();
TypeId GetInstanceTypeId() const;
virtual uint32_t GetSerializedSize() const;
virtual void Serialize(TagBuffer i) const;
virtual void Deserialize(TagBuffer i);
virtual void Print(std::ostream &os) const;
double getNoise();
double getSignal();
double getMinSNR();
void setNoise(double noise);
void setSignal(double signal);
void setMinSNR(double minSNR);
double getTxPower();
void setTxPower(double txPower);
uint64_t getGameID();
uint8_t getFrameType();
uint16_t getSequenceNumber();
void setGameID(uint64_t gid);
void setFrameType(uint8_t ft);
void setSequenceNumber(uint16_t seqNo);
private:
double noise;
double signal;
double minSNR;
double txPower;
uint64_t gid;
uint16_t seqNo;
uint8_t frameType;
};
}
#endif /* SCRATCH_BROADCAST_EEBTPTAG_H_ */