ns3::SatRandomAccessConf Class Reference

Class for random access configuration. More...

#include "satellite-random-access-container-conf.h"

+ Inheritance diagram for ns3::SatRandomAccessConf:
+ Collaboration diagram for ns3::SatRandomAccessConf:

Public Member Functions

 SatRandomAccessConf ()
 Constructor. More...
 
 SatRandomAccessConf (Ptr< SatLowerLayerServiceConf > llsConf, Ptr< SatSuperframeSeq > m_superframeSeq)
 Constructor. More...
 
virtual ~SatRandomAccessConf ()
 Destructor. More...
 
void DoSlottedAlohaVariableSanityCheck ()
 Function for checking the Slotted ALOHA variable sanity. More...
 
Ptr< SatRandomAccessAllocationChannelGetAllocationChannelConfiguration (uint32_t allocationChannel)
 Function for returning the allocation channel specific RA configuration. More...
 
uint32_t GetAllocationChannelConfigurationId (uint32_t allocationChannel)
 Function for retrieving the configuration ID of a given allocation channel. More...
 
uint32_t GetCrdsaSignalingOverheadInBytes ()
 Function for getting the CRDSA signaling overhead in bytes. More...
 
uint32_t GetNumOfAllocationChannelsConfigurations ()
 Function for getting the number of available allocation channels configurations. More...
 
uint32_t GetSlottedAlohaControlRandomizationIntervalInMilliSeconds ()
 Function for getting the Slotted ALOHA control randomization interval. More...
 
uint32_t GetSlottedAlohaSignalingOverheadInBytes ()
 Function for getting the Slotted ALOHA signaling overhead in bytes. More...
 
void SetSlottedAlohaControlRandomizationIntervalInMilliSeconds (uint32_t controlRandomizationIntervalInMilliSeconds)
 Function for setting the Slotted ALOHA control randomization interval. More...
 

Static Public Member Functions

static TypeId GetTypeId (void)
 NS-3 type id function. More...
 

Private Attributes

std::map< uint32_t, Ptr< SatRandomAccessAllocationChannel > > m_allocationChannelConf
 Map containing the allocation channel configurations. More...
 
uint32_t m_allocationChannelCount
 Number of available allocation channels. More...
 
std::vector< uint32_t > m_configurationIdPerAllocationChannel
 Mapping between an allocation channel and its associated configuration index. More...
 
uint32_t m_crdsaSignalingOverheadInBytes
 Defines the size of the CRDSA signaling overhead in bytes. More...
 
uint32_t m_slottedAlohaControlRandomizationIntervalInMilliSeconds
 Slotted ALOHA control randomization interval in milliseconds. More...
 
uint32_t m_slottedAlohaSignalingOverheadInBytes
 Defines the size of the Slotted ALOHA signaling overhead in bytes. More...
 

Detailed Description

Class for random access configuration.

This class holds the non-allocation channel specific random access configuration in addition to the configuration objects specific for each allocation channel.

Definition at line 47 of file satellite-random-access-container-conf.h.

Constructor & Destructor Documentation

◆ SatRandomAccessConf() [1/2]

ns3::SatRandomAccessConf::SatRandomAccessConf ( )

Constructor.

Definition at line 58 of file satellite-random-access-container-conf.cc.

◆ SatRandomAccessConf() [2/2]

ns3::SatRandomAccessConf::SatRandomAccessConf ( Ptr< SatLowerLayerServiceConf llsConf,
Ptr< SatSuperframeSeq m_superframeSeq 
)

Constructor.

this assumes that the slot IDs for each allocation channel start at 0

TODO Get rid of the hard coded 0 in GetSuperframeConf

this assumes that the slot IDs for each allocation channel start at 0

Definition at line 68 of file satellite-random-access-container-conf.cc.

References DoSlottedAlohaVariableSanityCheck(), m_allocationChannelConf, m_allocationChannelCount, m_configurationIdPerAllocationChannel, and m_slottedAlohaControlRandomizationIntervalInMilliSeconds.

+ Here is the call graph for this function:

◆ ~SatRandomAccessConf()

ns3::SatRandomAccessConf::~SatRandomAccessConf ( )
virtual

Destructor.

Definition at line 150 of file satellite-random-access-container-conf.cc.

Member Function Documentation

◆ DoSlottedAlohaVariableSanityCheck()

void ns3::SatRandomAccessConf::DoSlottedAlohaVariableSanityCheck ( )

Function for checking the Slotted ALOHA variable sanity.

Definition at line 173 of file satellite-random-access-container-conf.cc.

References m_slottedAlohaControlRandomizationIntervalInMilliSeconds.

Referenced by SatRandomAccessConf().

+ Here is the caller graph for this function:

◆ GetAllocationChannelConfiguration()

Ptr< SatRandomAccessAllocationChannel > ns3::SatRandomAccessConf::GetAllocationChannelConfiguration ( uint32_t  allocationChannel)

Function for returning the allocation channel specific RA configuration.

Parameters
allocationChannelallocation channel ID
Returns
allocation channel configuration

Definition at line 156 of file satellite-random-access-container-conf.cc.

References m_allocationChannelConf.

◆ GetAllocationChannelConfigurationId()

uint32_t ns3::SatRandomAccessConf::GetAllocationChannelConfigurationId ( uint32_t  allocationChannel)

Function for retrieving the configuration ID of a given allocation channel.

Parameters
allocationChannelallocation channel ID
Returns
allocation channel configuration ID

Definition at line 187 of file satellite-random-access-container-conf.cc.

References m_configurationIdPerAllocationChannel.

◆ GetCrdsaSignalingOverheadInBytes()

uint32_t ns3::SatRandomAccessConf::GetCrdsaSignalingOverheadInBytes ( )
inline

Function for getting the CRDSA signaling overhead in bytes.

Returns
CRDSA signaling overhead in bytes

Definition at line 121 of file satellite-random-access-container-conf.h.

References m_crdsaSignalingOverheadInBytes.

◆ GetNumOfAllocationChannelsConfigurations()

uint32_t ns3::SatRandomAccessConf::GetNumOfAllocationChannelsConfigurations ( )
inline

Function for getting the number of available allocation channels configurations.

Returns
number of allocation channels configurations

Definition at line 105 of file satellite-random-access-container-conf.h.

References m_allocationChannelCount.

◆ GetSlottedAlohaControlRandomizationIntervalInMilliSeconds()

uint32_t ns3::SatRandomAccessConf::GetSlottedAlohaControlRandomizationIntervalInMilliSeconds ( )
inline

Function for getting the Slotted ALOHA control randomization interval.

Returns
control randomization interval

Definition at line 84 of file satellite-random-access-container-conf.h.

References m_slottedAlohaControlRandomizationIntervalInMilliSeconds.

◆ GetSlottedAlohaSignalingOverheadInBytes()

uint32_t ns3::SatRandomAccessConf::GetSlottedAlohaSignalingOverheadInBytes ( )
inline

Function for getting the Slotted ALOHA signaling overhead in bytes.

Returns
Slotted ALOHA signaling overhead in bytes

Definition at line 130 of file satellite-random-access-container-conf.h.

References m_slottedAlohaSignalingOverheadInBytes.

◆ GetTypeId()

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

NS-3 type id function.

Returns
type id

Definition at line 37 of file satellite-random-access-container-conf.cc.

References m_crdsaSignalingOverheadInBytes, and m_slottedAlohaSignalingOverheadInBytes.

◆ SetSlottedAlohaControlRandomizationIntervalInMilliSeconds()

void ns3::SatRandomAccessConf::SetSlottedAlohaControlRandomizationIntervalInMilliSeconds ( uint32_t  controlRandomizationIntervalInMilliSeconds)
inline

Function for setting the Slotted ALOHA control randomization interval.

Parameters
controlRandomizationIntervalInMilliSecondscontrol randomization interval in milliseconds

Definition at line 94 of file satellite-random-access-container-conf.h.

References m_slottedAlohaControlRandomizationIntervalInMilliSeconds.

Member Data Documentation

◆ m_allocationChannelConf

std::map<uint32_t, Ptr<SatRandomAccessAllocationChannel> > ns3::SatRandomAccessConf::m_allocationChannelConf
private

Map containing the allocation channel configurations.

Definition at line 144 of file satellite-random-access-container-conf.h.

Referenced by SatRandomAccessConf(), and GetAllocationChannelConfiguration().

◆ m_allocationChannelCount

uint32_t ns3::SatRandomAccessConf::m_allocationChannelCount
private

Number of available allocation channels.

Definition at line 160 of file satellite-random-access-container-conf.h.

Referenced by SatRandomAccessConf(), and GetNumOfAllocationChannelsConfigurations().

◆ m_configurationIdPerAllocationChannel

std::vector<uint32_t> ns3::SatRandomAccessConf::m_configurationIdPerAllocationChannel
private

Mapping between an allocation channel and its associated configuration index.

Definition at line 149 of file satellite-random-access-container-conf.h.

Referenced by SatRandomAccessConf(), and GetAllocationChannelConfigurationId().

◆ m_crdsaSignalingOverheadInBytes

uint32_t ns3::SatRandomAccessConf::m_crdsaSignalingOverheadInBytes
private

Defines the size of the CRDSA signaling overhead in bytes.

Definition at line 165 of file satellite-random-access-container-conf.h.

Referenced by GetCrdsaSignalingOverheadInBytes(), and GetTypeId().

◆ m_slottedAlohaControlRandomizationIntervalInMilliSeconds

uint32_t ns3::SatRandomAccessConf::m_slottedAlohaControlRandomizationIntervalInMilliSeconds
private

◆ m_slottedAlohaSignalingOverheadInBytes

uint32_t ns3::SatRandomAccessConf::m_slottedAlohaSignalingOverheadInBytes
private

Defines the size of the Slotted ALOHA signaling overhead in bytes.

Definition at line 170 of file satellite-random-access-container-conf.h.

Referenced by GetSlottedAlohaSignalingOverheadInBytes(), and GetTypeId().


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