This class implements a tag that is used to identify control messages (packages). More...
#include "satellite-control-message.h"
Inheritance diagram for ns3::SatControlMsgTag:
Collaboration diagram for ns3::SatControlMsgTag:Public Types | |
| enum | SatControlMsgType_t { SAT_NON_CTRL_MSG , SAT_TBTP_CTRL_MSG , SAT_CR_CTRL_MSG , SAT_RA_CTRL_MSG , SAT_ARQ_ACK , SAT_CN0_REPORT , SAT_TIMU_CTRL_MSG , SAT_HR_CTRL_MSG , SAT_SLICE_CTRL_MSG , SAT_LOGON_CTRL_MSG , SAT_LOGON_RESPONSE_CTRL_MSG , SAT_LOGOFF_CTRL_MSG , SAT_NCR_CTRL_MSG , SAT_CMT_CTRL_MSG } |
| Definition for different types of control messages. More... | |
Public Member Functions | |
| SatControlMsgTag () | |
| Constructor for SatControlMsgTag. More... | |
| ~SatControlMsgTag () | |
| Destructor for SatControlMsgTag. More... | |
| virtual void | Deserialize (TagBuffer i) |
| Deserializes information from buffer to this instance of methods. More... | |
| virtual TypeId | GetInstanceTypeId (void) const |
| Get the type ID of instance. More... | |
| virtual uint32_t | GetMsgId () const |
| Get message type specific identifier. More... | |
| SatControlMsgType_t | GetMsgType (void) const |
| Get type of the control message. More... | |
| virtual uint32_t | GetSerializedSize (void) const |
| Get serialized size of methods. More... | |
| virtual void | Print (std::ostream &os) const |
| Print time stamp of this instance of methods. More... | |
| virtual void | Serialize (TagBuffer i) const |
| Serializes information to buffer from this instance of methods. More... | |
| virtual void | SetMsgId (uint32_t msgId) |
| Set message type specific identifier. More... | |
| void | SetMsgType (SatControlMsgType_t type) |
| Set type of the control message. More... | |
Static Public Member Functions | |
| static TypeId | GetTypeId (void) |
| methods derived from base classes More... | |
Private Attributes | |
| uint32_t | m_msgId |
| SatControlMsgType_t | m_msgType |
This class implements a tag that is used to identify control messages (packages).
Definition at line 51 of file satellite-control-message.h.
Definition for different types of control messages.
Definition at line 57 of file satellite-control-message.h.
| ns3::SatControlMsgTag::SatControlMsgTag | ( | ) |
Constructor for SatControlMsgTag.
Definition at line 44 of file satellite-control-message.cc.
| ns3::SatControlMsgTag::~SatControlMsgTag | ( | ) |
Destructor for SatControlMsgTag.
Definition at line 51 of file satellite-control-message.cc.
|
virtual |
Deserializes information from buffer to this instance of methods.
| i | Buffer from which the information is deserialized |
Definition at line 103 of file satellite-control-message.cc.
|
virtual |
Get the type ID of instance.
Definition at line 65 of file satellite-control-message.cc.
References GetTypeId().
Here is the call graph for this function:
|
virtual |
Get message type specific identifier.
Definition at line 125 of file satellite-control-message.cc.
References m_msgId.
Referenced by ns3::SatLlc::ReceiveHigherLayerPdu(), ns3::SatOrbiterLlc::ReceiveHigherLayerPdu(), ns3::SatOrbiterFeederMac::ReceiveSignalingPacket(), ns3::SatOrbiterUserMac::ReceiveSignalingPacket(), ns3::SatUtMac::ReceiveSignalingPacket(), ns3::SatGwMac::ReceiveSignalingPacket(), and ns3::SatMac::SendPacket().
Here is the caller graph for this function:| SatControlMsgTag::SatControlMsgType_t ns3::SatControlMsgTag::GetMsgType | ( | void | ) | const |
Get type of the control message.
Definition at line 80 of file satellite-control-message.cc.
References m_msgType.
Referenced by ns3::SatQueue::Enqueue(), ns3::SatUtMac::ExtractPacketsToSchedule(), ns3::SatOrbiterFeederMac::Receive(), ns3::SatOrbiterUserMac::Receive(), ns3::SatGwMac::Receive(), ns3::SatUtMac::Receive(), ns3::SatLlc::ReceiveHigherLayerPdu(), ns3::SatOrbiterLlc::ReceiveHigherLayerPdu(), ns3::SatOrbiterFeederMac::ReceiveSignalingPacket(), ns3::SatOrbiterUserMac::ReceiveSignalingPacket(), ns3::SatUtMac::ReceiveSignalingPacket(), ns3::SatGwMac::ReceiveSignalingPacket(), and ns3::SatMac::SendPacket().
Here is the caller graph for this function:
|
virtual |
Get serialized size of methods.
Definition at line 87 of file satellite-control-message.cc.
|
static |
methods derived from base classes
Definition at line 57 of file satellite-control-message.cc.
Referenced by GetInstanceTypeId().
Here is the caller graph for this function:
|
virtual |
Print time stamp of this instance of methods.
| &os | Output stream to which tag timestamp is printed. |
Definition at line 111 of file satellite-control-message.cc.
|
virtual |
Serializes information to buffer from this instance of methods.
| i | Buffer in which the information is serialized |
Definition at line 95 of file satellite-control-message.cc.
|
virtual |
Set message type specific identifier.
| msgId | Message type specific identifier. May be ignored by some message types. |
Definition at line 118 of file satellite-control-message.cc.
References m_msgId.
Referenced by ns3::SatNetDevice::SendControlMsg(), ns3::SatOrbiterNetDeviceDvb::SendControlMsgToFeeder(), and ns3::SatMac::SendPacket().
Here is the caller graph for this function:| void ns3::SatControlMsgTag::SetMsgType | ( | SatControlMsgType_t | type | ) |
Set type of the control message.
In construction phase initialized to value SAT_UNKNOWN_CTRL_MSG.
| type | The type of the control message |
Definition at line 73 of file satellite-control-message.cc.
References m_msgType.
Referenced by ns3::SatNetDevice::SendControlMsg(), and ns3::SatOrbiterNetDeviceDvb::SendControlMsgToFeeder().
Here is the caller graph for this function:
|
private |
Definition at line 147 of file satellite-control-message.h.
Referenced by Deserialize(), GetMsgId(), GetSerializedSize(), Print(), Serialize(), and SetMsgId().
|
private |
Definition at line 146 of file satellite-control-message.h.
Referenced by Deserialize(), GetMsgType(), GetSerializedSize(), Print(), Serialize(), and SetMsgType().