22 #ifndef SATELLITE_RANDOM_ACCESS_ALLOCATION_CHANNEL_H
23 #define SATELLITE_RANDOM_ACCESS_ALLOCATION_CHANNEL_H
25 #include <ns3/object.h>
26 #include <ns3/simulator.h>
27 #include <ns3/uinteger.h>
Class for random access allocation channel configuration.
double m_crdsaBackoffProbability
CRDSA backoff probability.
bool GetCrdsaAllowed()
Function for getting the status of CRDSA allowance.
uint32_t m_fSimBackoffTimeInMilliSeconds
F-SIM Backoff Time in physical layer frame units.
double m_fSimBackoffProbability
F-SIM Backoff Probability.
static TypeId GetTypeId(void)
NS-3 type id function.
bool GetSlottedAlohaAllowed()
Function for getting the status of Slotted Aloha allowance.
uint32_t m_crdsaNumOfConsecutiveBlocksUsed
CRDSA number of consecutive blocks used.
virtual ~SatRandomAccessAllocationChannel()
Destructor.
void SetCrdsaNumOfConsecutiveBlocksUsed(uint32_t numOfConsecutiveBlocksUsed)
Function for setting the CRDSA number of consecutive blocks used.
void SetCrdsaBackoffReleaseTime(Time crdsaBackoffReleaseTime)
Function for setting the CRDSA backoff release time.
void SetFSimBackoffTimeInMilliSeconds(uint32_t fSimBackoffTimeInMilliSeconds)
Function for setting the F-SIM backoff time.
Time GetCrdsaBackoffReleaseTime()
Function for getting the CRDSA backoff release time.
bool GetEssaAllowed()
Function for getting the status of ESSA allowance.
void SetCrdsaMaxRandomizationValue(uint32_t maxRandomizationValue)
Function for setting the CRDSA maximum randomization value.
uint32_t m_crdsaNumOfInstances
CRDSA number of packet instances (replicas)
void DoCrdsaVariableSanityCheck()
Function for checking the CRDSA parameter sanity.
uint32_t m_crdsaMaxUniquePayloadPerBlock
CRDSA maximum number of unique payloads per block.
void SetCrdsaMaxConsecutiveBlocksAccessed(uint32_t maxConsecutiveBlocksAccessed)
Function for setting the CRDSA maximum number of consecutive blocks accessed.
uint32_t GetCrdsaMaxRandomizationValue()
Function for getting the CRDSA maximum randomization value.
void SetFSimBackoffTimeInFrames(uint32_t fSimBackoffTimeInFrames)
Function for setting the F-SIM backoff time.
uint32_t m_fSimPhysicalLayerFrameInMilliSeconds
F-SIM physical layer frame duration in milliseconds TODO: maybe this shouldn't be here.
uint32_t GetFSimBackoffTimeInMilliSeconds()
Function for getting the F-SIM backoff time.
uint32_t GetCrdsaNumOfConsecutiveBlocksUsed()
Function for getting the CRDSA number of consecutive blocks used.
uint32_t GetCrdsaMinIdleBlocks()
Function for getting the CRDSA minimum number of idle blocks.
void SetEssaAllowed(bool isEssaAllowed)
Function for setting the status of ESSA allowance.
uint32_t m_crdsaBackoffTimeInMilliSeconds
CRDSA backoff time.
uint32_t m_crdsaMinRandomizationValue
CRDSA minimum randomization value.
void SetCrdsaBackoffTimeInMilliSeconds(uint32_t crdsaBackoffTimeInMilliSeconds)
Function for setting the CRDSA backoff time.
double GetFSimBackoffProbability()
Function for getting the F-SIM backoff probability.
double GetCrdsaBackoffProbability()
Function for getting the CRDSA backoff probability.
uint32_t m_crdsaMaxRandomizationValue
CRDSA maximum randomization value.
uint32_t m_crdsaMaxConsecutiveBlocksAccessed
CRDSA maximum number of consecutive blocks accessed.
void SetSlottedAlohaAllowed(bool isSlottedAlohaAllowed)
Function for setting the status of Slotted Aloha allowance.
void SetCrdsaBackoffProbability(uint16_t crdsaBackoffProbability)
Function for setting the CRDSA backoff probability.
void SetCrdsaMaxUniquePayloadPerBlock(uint32_t maxUniquePayloadPerBlock)
Function for setting the CRDSA maximum number of unique payloads per block.
bool m_slottedAlohaAllowed
Slotted Aloha allowed.
uint32_t GetCrdsaMinRandomizationValue()
Function for getting the CRDSA minimum randomization value.
uint32_t GetCrdsaIdleBlocksLeft()
Function for getting the CRDSA number of idle blocks left.
void SetFSimPhysicalLayerFrameInMilliSeconds(uint32_t fSimPhysicalLayerFrameInMilliSeconds)
Function for setting the F-SIM physical layer frame duration.
uint32_t m_crdsaMinIdleBlocks
CRDSA minimum number of idle blocks.
void SetCrdsaNumOfInstances(uint32_t numOfInstances)
Function for setting the CRDSA number of packet instances (replicas)
uint32_t m_crdsaIdleBlocksLeft
CRDSA number of idle blocks left.
void SetCrdsaMinIdleBlocks(uint32_t minIdleBlocks)
Function for setting the CRDSA minimum number of idle blocks.
uint32_t GetCrdsaMaxConsecutiveBlocksAccessed()
Function for getting the CRDSA number of consecutive blocks accessed.
SatRandomAccessAllocationChannel()
Constructor.
Time m_crdsaBackoffReleaseTime
CRDSA backoff release time.
uint32_t GetCrdsaBackoffTimeInMilliSeconds()
Function for getting the CRDSA backoff time.
void SetCrdsaMinRandomizationValue(uint32_t minRandomizationValue)
Function for setting the CRDSA minimum randomization value.
bool m_essaAllowed
ESSA allowed.
uint32_t GetCrdsaMaxUniquePayloadPerBlock()
Function for getting the CRDSA maximum number of unique payloads per block.
bool m_crdsaAllowed
CRDSA allowed.
void SetFSimBackoffProbability(uint16_t fSimPersistence)
Function for setting the F-SIM backoff probability.
uint32_t GetCrdsaNumOfInstances()
Function for getting the CRDSA number of packet instances (replicas)
void SetCrdsaAllowed(bool isCrdsaAllowed)
Function for setting the status of CRDSA allowance.
void SetCrdsaIdleBlocksLeft(uint32_t idleBlocksLeft)
Function for setting the CRDSA number of idle blocks left.
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.