Random access load control message (Tagged by SatControlMsgTag with type value SAT_RA_CTRL_MSG) More...
#include "satellite-control-message.h"
Public Member Functions | |
SatRaMessage () | |
Constructor for SatRaMessage. More... | |
~SatRaMessage () | |
Destructor for SatRaMessage. More... | |
uint8_t | GetAllocationChannelId () const |
Get allocation chanel ID. More... | |
uint16_t | GetBackoffProbability () const |
Get backoff probability. More... | |
uint16_t | GetBackoffTime () const |
Get backoff time. More... | |
virtual TypeId | GetInstanceTypeId (void) const |
Get the type ID of instance. More... | |
SatControlMsgTag::SatControlMsgType_t | GetMsgType () const |
Get type of the message. More... | |
virtual uint32_t | GetSizeInBytes () const |
Get real size of the random access message, which can be used to e.g. More... | |
void | SetAllocationChannelId (uint8_t allocationChannel) |
Set allocation channel ID. More... | |
void | SetBackoffProbability (uint16_t backoffProbability) |
Set backoff probability. More... | |
void | SetBackoffTime (uint16_t backoffTime) |
Set backoff time. More... | |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
methods derived from base classes More... | |
Private Attributes | |
uint8_t | m_allocationChannelId |
Allocation channel ID. More... | |
uint16_t | m_backoffProbability |
Backoff probability. More... | |
uint16_t | m_backoffTime |
Backoff time. More... | |
Static Private Attributes | |
static const uint32_t | RA_CONTROL_MSG_HEADER_SIZE_IN_BYTES = 5 |
Common header of the random access element. More... | |
Random access load control message (Tagged by SatControlMsgTag with type value SAT_RA_CTRL_MSG)
Definition at line 676 of file satellite-control-message.h.
ns3::SatRaMessage::SatRaMessage | ( | ) |
Constructor for SatRaMessage.
Definition at line 547 of file satellite-control-message.cc.
ns3::SatRaMessage::~SatRaMessage | ( | ) |
Destructor for SatRaMessage.
Definition at line 555 of file satellite-control-message.cc.
uint8_t ns3::SatRaMessage::GetAllocationChannelId | ( | ) | const |
Get allocation chanel ID.
Definition at line 569 of file satellite-control-message.cc.
References m_allocationChannelId.
uint16_t ns3::SatRaMessage::GetBackoffProbability | ( | ) | const |
Get backoff probability.
Definition at line 591 of file satellite-control-message.cc.
References m_backoffProbability.
uint16_t ns3::SatRaMessage::GetBackoffTime | ( | ) | const |
Get backoff time.
Definition at line 597 of file satellite-control-message.cc.
References m_backoffTime.
|
virtual |
Get the type ID of instance.
Definition at line 540 of file satellite-control-message.cc.
References GetTypeId().
|
inlinevirtual |
Get type of the message.
Implements ns3::SatControlMessage.
Definition at line 705 of file satellite-control-message.h.
References ns3::SatControlMsgTag::SAT_RA_CTRL_MSG.
|
virtual |
Get real size of the random access message, which can be used to e.g.
simulate real size.
Implements ns3::SatControlMessage.
Definition at line 603 of file satellite-control-message.cc.
References RA_CONTROL_MSG_HEADER_SIZE_IN_BYTES.
|
static |
methods derived from base classes
Definition at line 532 of file satellite-control-message.cc.
Referenced by GetInstanceTypeId().
void ns3::SatRaMessage::SetAllocationChannelId | ( | uint8_t | allocationChannel | ) |
Set allocation channel ID.
allocationChannel | Allocation channel ID |
Definition at line 561 of file satellite-control-message.cc.
References m_allocationChannelId.
void ns3::SatRaMessage::SetBackoffProbability | ( | uint16_t | backoffProbability | ) |
Set backoff probability.
backoffProbability | Backoff probability |
Definition at line 575 of file satellite-control-message.cc.
References m_backoffProbability.
void ns3::SatRaMessage::SetBackoffTime | ( | uint16_t | backoffTime | ) |
Set backoff time.
backoffTime | Backoff time |
Definition at line 583 of file satellite-control-message.cc.
References m_backoffTime.
|
private |
Allocation channel ID.
Definition at line 761 of file satellite-control-message.h.
Referenced by GetAllocationChannelId(), and SetAllocationChannelId().
|
private |
Backoff probability.
Definition at line 766 of file satellite-control-message.h.
Referenced by GetBackoffProbability(), and SetBackoffProbability().
|
private |
Backoff time.
Definition at line 771 of file satellite-control-message.h.
Referenced by GetBackoffTime(), and SetBackoffTime().
|
staticprivate |
Common header of the random access element.
Definition at line 756 of file satellite-control-message.h.
Referenced by GetSizeInBytes().