Tag used to save various data about a packet, like its Spreading Factor and data about interference. More...
#include "lora-beam-tag.h"
Public Member Functions | |
LoraBeamTag (uint8_t beamId=0) | |
Create a LoraBeamTag with a given beam ID. More... | |
virtual | ~LoraBeamTag () |
virtual void | Deserialize (TagBuffer i) |
uint8_t | GetBeamId () const |
Read which beam ID this packet was transmitted with. More... | |
virtual TypeId | GetInstanceTypeId (void) const |
virtual uint32_t | GetSerializedSize () const |
virtual void | Print (std::ostream &os) const |
virtual void | Serialize (TagBuffer i) const |
void | SetBeamId (uint8_t beamId) |
Set which beamId this packet was transmitted with. More... | |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
Private Attributes | |
uint8_t | m_beamId |
The beam ID used by the packet. More... | |
Tag used to save various data about a packet, like its Spreading Factor and data about interference.
Definition at line 36 of file lora-beam-tag.h.
ns3::LoraBeamTag::LoraBeamTag | ( | uint8_t | beamId = 0 | ) |
Create a LoraBeamTag with a given beam ID.
beamId | The beam ID associated to this packet |
Definition at line 47 of file lora-beam-tag.cc.
|
virtual |
Definition at line 52 of file lora-beam-tag.cc.
|
virtual |
Definition at line 69 of file lora-beam-tag.cc.
References m_beamId.
uint8_t ns3::LoraBeamTag::GetBeamId | ( | ) | const |
Read which beam ID this packet was transmitted with.
Definition at line 81 of file lora-beam-tag.cc.
References m_beamId.
Referenced by ns3::LoraEndDeviceStatus::InsertReceivedPacket(), and ns3::LoraForwarder::ReceiveFromPointToPoint().
|
virtual |
Definition at line 42 of file lora-beam-tag.cc.
References GetTypeId().
|
virtual |
Definition at line 57 of file lora-beam-tag.cc.
|
static |
Definition at line 35 of file lora-beam-tag.cc.
Referenced by GetInstanceTypeId().
|
virtual |
Definition at line 75 of file lora-beam-tag.cc.
References m_beamId.
|
virtual |
Definition at line 63 of file lora-beam-tag.cc.
References m_beamId.
void ns3::LoraBeamTag::SetBeamId | ( | uint8_t | beamId | ) |
Set which beamId this packet was transmitted with.
beamId | The beam ID. |
Definition at line 87 of file lora-beam-tag.cc.
References m_beamId.
Referenced by ns3::LoraNetworkStatus::GetReplyForDevice().
|
private |
The beam ID used by the packet.
Definition at line 71 of file lora-beam-tag.h.
Referenced by Deserialize(), GetBeamId(), Print(), Serialize(), and SetBeamId().