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. | |
| ~SatRaMessage () | |
| Destructor for SatRaMessage. | |
| uint8_t | GetAllocationChannelId () const |
| Get allocation chanel ID. | |
| uint16_t | GetBackoffProbability () const |
| Get backoff probability. | |
| uint16_t | GetBackoffTime () const |
| Get backoff time. | |
| SatControlMsgTag::SatControlMsgType_t | GetMsgType () const |
| Get type of the message. | |
| virtual uint32_t | GetSizeInBytes () const |
| Get real size of the random access message, which can be used to e.g. | |
| void | SetAllocationChannelId (uint8_t allocationChannel) |
| Set allocation channel ID. | |
| void | SetBackoffProbability (uint16_t backoffProbability) |
| Set backoff probability. | |
| void | SetBackoffTime (uint16_t backoffTime) |
| Set backoff time. | |
Static Public Member Functions | |
| static TypeId | GetTypeId (void) |
| methods derived from base classes | |
Private Attributes | |
| uint8_t | m_allocationChannelId |
| Allocation channel ID. | |
| uint16_t | m_backoffProbability |
| Backoff probability. | |
| uint16_t | m_backoffTime |
| Backoff time. | |
Static Private Attributes | |
| static const uint32_t | RA_CONTROL_MSG_HEADER_SIZE_IN_BYTES = 5 |
| Common header of the random access element. | |
Random access load control message (Tagged by SatControlMsgTag with type value SAT_RA_CTRL_MSG).
Definition at line 652 of file satellite-control-message.h.
| ns3::SatRaMessage::SatRaMessage | ( | ) |
Constructor for SatRaMessage.
Definition at line 515 of file satellite-control-message.cc.
References m_allocationChannelId, m_backoffProbability, and m_backoffTime.
| ns3::SatRaMessage::~SatRaMessage | ( | ) |
Destructor for SatRaMessage.
Definition at line 523 of file satellite-control-message.cc.
| uint8_t ns3::SatRaMessage::GetAllocationChannelId | ( | ) | const |
Get allocation chanel ID.
Definition at line 537 of file satellite-control-message.cc.
References m_allocationChannelId.
| uint16_t ns3::SatRaMessage::GetBackoffProbability | ( | ) | const |
Get backoff probability.
Definition at line 559 of file satellite-control-message.cc.
References m_backoffProbability.
| uint16_t ns3::SatRaMessage::GetBackoffTime | ( | ) | const |
Get backoff time.
Definition at line 565 of file satellite-control-message.cc.
References m_backoffTime.
|
inlinevirtual |
Get type of the message.
Implements ns3::SatControlMessage.
Definition at line 675 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 571 of file satellite-control-message.cc.
References RA_CONTROL_MSG_HEADER_SIZE_IN_BYTES.
|
static |
methods derived from base classes
Definition at line 508 of file satellite-control-message.cc.
References ns3::SatControlMessage::SatControlMessage().
| void ns3::SatRaMessage::SetAllocationChannelId | ( | uint8_t | allocationChannel | ) |
Set allocation channel ID.
| allocationChannel | Allocation channel ID |
Definition at line 529 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 543 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 551 of file satellite-control-message.cc.
References m_backoffTime.
|
private |
Allocation channel ID.
Definition at line 731 of file satellite-control-message.h.
Referenced by SatRaMessage(), GetAllocationChannelId(), and SetAllocationChannelId().
|
private |
Backoff probability.
Definition at line 736 of file satellite-control-message.h.
Referenced by SatRaMessage(), GetBackoffProbability(), and SetBackoffProbability().
|
private |
Backoff time.
Definition at line 741 of file satellite-control-message.h.
Referenced by SatRaMessage(), GetBackoffTime(), and SetBackoffTime().
|
staticprivate |
Common header of the random access element.
Definition at line 726 of file satellite-control-message.h.
Referenced by GetSizeInBytes().