This class implements a tag that carries information about the slot IDs of CRDSA packet replicas. More...
#include "satellite-crdsa-replica-tag.h"
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 |
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 42 of file satellite-crdsa-replica-tag.h.
ns3::SatCrdsaReplicaTag::SatCrdsaReplicaTag | ( | ) |
Default constructor.
Definition at line 35 of file satellite-crdsa-replica-tag.cc.
ns3::SatCrdsaReplicaTag::~SatCrdsaReplicaTag | ( | ) |
Destructor for SatCrdsaReplicaTag.
Definition at line 41 of file satellite-crdsa-replica-tag.cc.
References m_slotIds.
void ns3::SatCrdsaReplicaTag::AddSlotId | ( | uint16_t | slotId | ) |
Definition at line 65 of file satellite-crdsa-replica-tag.cc.
References m_numOfIds, and m_slotIds.
Referenced by ns3::SatUtMac::CreateCrdsaPacketInstances().
|
virtual |
Deserializes information from buffer to this instance of SatCrdsaReplicaTag.
buffer | Buffer from which the information is deserialized |
Definition at line 101 of file satellite-crdsa-replica-tag.cc.
References m_numOfIds, and m_slotIds.
|
virtual |
Get the type ID of instance.
Definition at line 57 of file satellite-crdsa-replica-tag.cc.
References GetTypeId().
|
virtual |
Get serialized size of SatCrdsaReplicaTag.
Definition at line 80 of file satellite-crdsa-replica-tag.cc.
References m_slotIds.
std::vector< uint16_t > ns3::SatCrdsaReplicaTag::GetSlotIds | ( | void | ) |
Definition at line 73 of file satellite-crdsa-replica-tag.cc.
References m_slotIds.
Referenced by ns3::SatPhyRxCarrierPerFrame::AddCrdsaPacket().
|
static |
Get the type ID.
Definition at line 49 of file satellite-crdsa-replica-tag.cc.
Referenced by GetInstanceTypeId().
|
virtual |
Print time stamp of this instance of SatCrdsaReplicaTag.
&os | Output stream to which tag timestamp is printed. |
Definition at line 114 of file satellite-crdsa-replica-tag.cc.
References m_numOfIds, and m_slotIds.
|
virtual |
Serializes information to buffer from this instance of SatCrdsaReplicaTag.
buffer | Buffer in which the information is serialized |
Definition at line 88 of file satellite-crdsa-replica-tag.cc.
References m_numOfIds, and m_slotIds.
|
private |
Definition at line 96 of file satellite-crdsa-replica-tag.h.
Referenced by AddSlotId(), Deserialize(), Print(), and Serialize().
|
private |
Definition at line 95 of file satellite-crdsa-replica-tag.h.
Referenced by ~SatCrdsaReplicaTag(), AddSlotId(), Deserialize(), GetSerializedSize(), GetSlotIds(), Print(), and Serialize().