Loading...
Searching...
No Matches
ns3::LoraBeamTag Class Reference

Tag used to save various data about a packet, like its Spreading Factor and data about interference. More...

#include "lora-beam-tag.h"

Inheritance diagram for ns3::LoraBeamTag:
Collaboration diagram for ns3::LoraBeamTag:

Public Member Functions

 LoraBeamTag (uint8_t beamId=0)
 Create a LoraBeamTag with a given beam ID.
virtual ~LoraBeamTag ()
virtual void Deserialize (TagBuffer i)
uint8_t GetBeamId () const
 Read which beam ID this packet was transmitted with.
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.

Static Public Member Functions

static TypeId GetTypeId (void)

Private Attributes

uint8_t m_beamId
 The beam ID used by the packet.

Detailed Description

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.

Constructor & Destructor Documentation

◆ LoraBeamTag()

ns3::LoraBeamTag::LoraBeamTag ( uint8_t beamId = 0)

Create a LoraBeamTag with a given beam ID.

Parameters
beamIdThe beam ID associated to this packet

Definition at line 47 of file lora-beam-tag.cc.

References m_beamId.

◆ ~LoraBeamTag()

ns3::LoraBeamTag::~LoraBeamTag ( )
virtual

Definition at line 52 of file lora-beam-tag.cc.

Member Function Documentation

◆ Deserialize()

void ns3::LoraBeamTag::Deserialize ( TagBuffer i)
virtual

Definition at line 69 of file lora-beam-tag.cc.

References m_beamId.

◆ GetBeamId()

uint8_t ns3::LoraBeamTag::GetBeamId ( ) const

Read which beam ID this packet was transmitted with.

Returns
This tag's packet's beam ID.

Definition at line 81 of file lora-beam-tag.cc.

References m_beamId.

Referenced by ns3::LoraEndDeviceStatus::InsertReceivedPacket(), and ns3::LoraForwarder::ReceiveFromPointToPoint().

Here is the caller graph for this function:

◆ GetInstanceTypeId()

TypeId ns3::LoraBeamTag::GetInstanceTypeId ( void ) const
virtual

Definition at line 42 of file lora-beam-tag.cc.

References GetTypeId().

Here is the call graph for this function:

◆ GetSerializedSize()

uint32_t ns3::LoraBeamTag::GetSerializedSize ( void ) const
virtual

Definition at line 57 of file lora-beam-tag.cc.

◆ GetTypeId()

TypeId ns3::LoraBeamTag::GetTypeId ( void )
static

Definition at line 35 of file lora-beam-tag.cc.

Referenced by GetInstanceTypeId().

Here is the caller graph for this function:

◆ Print()

void ns3::LoraBeamTag::Print ( std::ostream & os) const
virtual

Definition at line 75 of file lora-beam-tag.cc.

References m_beamId.

◆ Serialize()

void ns3::LoraBeamTag::Serialize ( TagBuffer i) const
virtual

Definition at line 63 of file lora-beam-tag.cc.

References m_beamId.

◆ SetBeamId()

void ns3::LoraBeamTag::SetBeamId ( uint8_t beamId)

Set which beamId this packet was transmitted with.

Parameters
beamIdThe beam ID.

Definition at line 87 of file lora-beam-tag.cc.

References m_beamId.

Referenced by ns3::LoraNetworkStatus::GetReplyForDevice().

Here is the caller graph for this function:

Member Data Documentation

◆ m_beamId

uint8_t ns3::LoraBeamTag::m_beamId
private

The beam ID used by the packet.

Definition at line 71 of file lora-beam-tag.h.

Referenced by LoraBeamTag(), Deserialize(), GetBeamId(), Print(), Serialize(), and SetBeamId().


The documentation for this class was generated from the following files: