ns3::SatCrdsaReplicaTag Class Reference

This class implements a tag that carries information about the slot IDs of CRDSA packet replicas. More...

#include "satellite-crdsa-replica-tag.h"

+ Inheritance diagram for ns3::SatCrdsaReplicaTag:
+ Collaboration diagram for ns3::SatCrdsaReplicaTag:

Public Member Functions

 SatCrdsaReplicaTag ()
 Default constructor. More...
 
 ~SatCrdsaReplicaTag ()
 Destructor for SatCrdsaReplicaTag. More...
 
void AddSlotId (uint16_t slotId)
 
virtual void Deserialize (TagBuffer buffer)
 Deserializes information from buffer to this instance of SatCrdsaReplicaTag. More...
 
virtual TypeId GetInstanceTypeId (void) const
 Get the type ID of instance. More...
 
virtual uint32_t GetSerializedSize (void) const
 Get serialized size of SatCrdsaReplicaTag. More...
 
std::vector< uint16_t > GetSlotIds (void)
 
virtual void Print (std::ostream &os) const
 Print time stamp of this instance of SatCrdsaReplicaTag. More...
 
virtual void Serialize (TagBuffer buffer) const
 Serializes information to buffer from this instance of SatCrdsaReplicaTag. More...
 

Static Public Member Functions

static TypeId GetTypeId (void)
 Get the type ID. More...
 

Private Attributes

uint8_t m_numOfIds
 
std::vector< uint16_t > m_slotIds
 

Detailed Description

This class implements a tag that carries information about the slot IDs of CRDSA packet replicas.

This information is used to determine the CRDSA replicas within the CRDSA frame. The tag is added to each created CRDSA packet on the transmitter side and read from the CRDSA packet on the receiver side.

Definition at line 40 of file satellite-crdsa-replica-tag.h.

Constructor & Destructor Documentation

◆ SatCrdsaReplicaTag()

ns3::SatCrdsaReplicaTag::SatCrdsaReplicaTag ( )

Default constructor.

Definition at line 32 of file satellite-crdsa-replica-tag.cc.

◆ ~SatCrdsaReplicaTag()

ns3::SatCrdsaReplicaTag::~SatCrdsaReplicaTag ( )

Destructor for SatCrdsaReplicaTag.

Definition at line 38 of file satellite-crdsa-replica-tag.cc.

References m_slotIds.

Member Function Documentation

◆ AddSlotId()

void ns3::SatCrdsaReplicaTag::AddSlotId ( uint16_t  slotId)

Definition at line 62 of file satellite-crdsa-replica-tag.cc.

References m_numOfIds, and m_slotIds.

Referenced by ns3::SatUtMac::CreateCrdsaPacketInstances().

+ Here is the caller graph for this function:

◆ Deserialize()

void ns3::SatCrdsaReplicaTag::Deserialize ( TagBuffer  buffer)
virtual

Deserializes information from buffer to this instance of SatCrdsaReplicaTag.

Parameters
bufferBuffer from which the information is deserialized

Definition at line 98 of file satellite-crdsa-replica-tag.cc.

References m_numOfIds, and m_slotIds.

◆ GetInstanceTypeId()

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

Get the type ID of instance.

Returns
the object TypeId

Definition at line 54 of file satellite-crdsa-replica-tag.cc.

References GetTypeId().

+ Here is the call graph for this function:

◆ GetSerializedSize()

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

Get serialized size of SatCrdsaReplicaTag.

Returns
Serialized size in bytes

Definition at line 77 of file satellite-crdsa-replica-tag.cc.

References m_slotIds.

◆ GetSlotIds()

std::vector< uint16_t > ns3::SatCrdsaReplicaTag::GetSlotIds ( void  )

Definition at line 70 of file satellite-crdsa-replica-tag.cc.

References m_slotIds.

Referenced by ns3::SatPhyRxCarrierPerFrame::AddCrdsaPacket().

+ Here is the caller graph for this function:

◆ GetTypeId()

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

Get the type ID.

Returns
the object TypeId

Definition at line 46 of file satellite-crdsa-replica-tag.cc.

Referenced by GetInstanceTypeId().

+ Here is the caller graph for this function:

◆ Print()

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

Print time stamp of this instance of SatCrdsaReplicaTag.

Parameters
&osOutput stream to which tag timestamp is printed.

Definition at line 111 of file satellite-crdsa-replica-tag.cc.

References m_numOfIds, and m_slotIds.

◆ Serialize()

void ns3::SatCrdsaReplicaTag::Serialize ( TagBuffer  buffer) const
virtual

Serializes information to buffer from this instance of SatCrdsaReplicaTag.

Parameters
bufferBuffer in which the information is serialized

Definition at line 85 of file satellite-crdsa-replica-tag.cc.

References m_numOfIds, and m_slotIds.

Member Data Documentation

◆ m_numOfIds

uint8_t ns3::SatCrdsaReplicaTag::m_numOfIds
private

Definition at line 94 of file satellite-crdsa-replica-tag.h.

Referenced by AddSlotId(), Deserialize(), Print(), and Serialize().

◆ m_slotIds

std::vector<uint16_t> ns3::SatCrdsaReplicaTag::m_slotIds
private

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