Class for random access configuration. More...
#include "satellite-random-access-container-conf.h"
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< SatRandomAccessAllocationChannel > | GetAllocationChannelConfiguration (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... | |
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 49 of file satellite-random-access-container-conf.h.
ns3::SatRandomAccessConf::SatRandomAccessConf | ( | ) |
Constructor.
Definition at line 62 of file satellite-random-access-container-conf.cc.
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 72 of file satellite-random-access-container-conf.cc.
References DoSlottedAlohaVariableSanityCheck(), m_allocationChannelConf, m_allocationChannelCount, m_configurationIdPerAllocationChannel, and m_slottedAlohaControlRandomizationIntervalInMilliSeconds.
|
virtual |
Destructor.
Definition at line 154 of file satellite-random-access-container-conf.cc.
void ns3::SatRandomAccessConf::DoSlottedAlohaVariableSanityCheck | ( | ) |
Function for checking the Slotted ALOHA variable sanity.
Definition at line 177 of file satellite-random-access-container-conf.cc.
References m_slottedAlohaControlRandomizationIntervalInMilliSeconds.
Referenced by SatRandomAccessConf().
Ptr< SatRandomAccessAllocationChannel > ns3::SatRandomAccessConf::GetAllocationChannelConfiguration | ( | uint32_t | allocationChannel | ) |
Function for returning the allocation channel specific RA configuration.
allocationChannel | allocation channel ID |
Definition at line 160 of file satellite-random-access-container-conf.cc.
References m_allocationChannelConf.
uint32_t ns3::SatRandomAccessConf::GetAllocationChannelConfigurationId | ( | uint32_t | allocationChannel | ) |
Function for retrieving the configuration ID of a given allocation channel.
allocationChannel | allocation channel ID |
Definition at line 191 of file satellite-random-access-container-conf.cc.
References m_configurationIdPerAllocationChannel.
|
inline |
Function for getting the CRDSA signaling overhead in bytes.
Definition at line 123 of file satellite-random-access-container-conf.h.
References m_crdsaSignalingOverheadInBytes.
|
inline |
Function for getting the number of available allocation channels configurations.
Definition at line 107 of file satellite-random-access-container-conf.h.
References m_allocationChannelCount.
|
inline |
Function for getting the Slotted ALOHA control randomization interval.
Definition at line 86 of file satellite-random-access-container-conf.h.
References m_slottedAlohaControlRandomizationIntervalInMilliSeconds.
|
inline |
Function for getting the Slotted ALOHA signaling overhead in bytes.
Definition at line 132 of file satellite-random-access-container-conf.h.
References m_slottedAlohaSignalingOverheadInBytes.
|
static |
NS-3 type id function.
Definition at line 41 of file satellite-random-access-container-conf.cc.
References m_crdsaSignalingOverheadInBytes, and m_slottedAlohaSignalingOverheadInBytes.
|
inline |
Function for setting the Slotted ALOHA control randomization interval.
controlRandomizationIntervalInMilliSeconds | control randomization interval in milliseconds |
Definition at line 96 of file satellite-random-access-container-conf.h.
References m_slottedAlohaControlRandomizationIntervalInMilliSeconds.
|
private |
Map containing the allocation channel configurations.
Definition at line 146 of file satellite-random-access-container-conf.h.
Referenced by SatRandomAccessConf(), and GetAllocationChannelConfiguration().
|
private |
Number of available allocation channels.
Definition at line 162 of file satellite-random-access-container-conf.h.
Referenced by SatRandomAccessConf(), and GetNumOfAllocationChannelsConfigurations().
|
private |
Mapping between an allocation channel and its associated configuration index.
Definition at line 151 of file satellite-random-access-container-conf.h.
Referenced by SatRandomAccessConf(), and GetAllocationChannelConfigurationId().
|
private |
Defines the size of the CRDSA signaling overhead in bytes.
Definition at line 167 of file satellite-random-access-container-conf.h.
Referenced by GetCrdsaSignalingOverheadInBytes(), and GetTypeId().
|
private |
Slotted ALOHA control randomization interval in milliseconds.
Definition at line 157 of file satellite-random-access-container-conf.h.
Referenced by SatRandomAccessConf(), DoSlottedAlohaVariableSanityCheck(), GetSlottedAlohaControlRandomizationIntervalInMilliSeconds(), and SetSlottedAlohaControlRandomizationIntervalInMilliSeconds().
|
private |
Defines the size of the Slotted ALOHA signaling overhead in bytes.
Definition at line 172 of file satellite-random-access-container-conf.h.
Referenced by GetSlottedAlohaSignalingOverheadInBytes(), and GetTypeId().