Time tag used to identify the time when packet is enqueued at MAC on current link level. More...
#include "satellite-time-tag.h"
Public Member Functions | |
SatMacLinkTimeTag () | |
Default constructor. More... | |
SatMacLinkTimeTag (Time senderTimestamp) | |
Constructor with initialization parameters. More... | |
virtual void | Deserialize (TagBuffer i) |
Deserializes information from buffer to this instance of SatMacLinkTimeTag. More... | |
virtual TypeId | GetInstanceTypeId (void) const |
Get the type ID of instance. More... | |
Time | GetSenderLinkTimestamp (void) const |
Get sender time stamp of this tag. More... | |
virtual uint32_t | GetSerializedSize () const |
Get serialized size of SatMacLinkTimeTag. More... | |
virtual void | Print (std::ostream &os) const |
Print time stamp of this instance of SatMacLinkTimeTag. More... | |
virtual void | Serialize (TagBuffer i) const |
Serializes information to buffer from this instance of SatMacLinkTimeTag. More... | |
void | SetSenderLinkTimestamp (Time senderLinkTimestamp) |
Set sender time stamp of this tag. More... | |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
Get the type ID. More... | |
Private Attributes | |
Time | m_senderLinkTimestamp |
Time tag used to identify the time when packet is enqueued at MAC on current link level.
Definition at line 325 of file satellite-time-tag.h.
ns3::SatMacLinkTimeTag::SatMacLinkTimeTag | ( | ) |
Default constructor.
Definition at line 311 of file satellite-time-tag.cc.
ns3::SatMacLinkTimeTag::SatMacLinkTimeTag | ( | Time | senderTimestamp | ) |
Constructor with initialization parameters.
senderTimestamp |
Definition at line 317 of file satellite-time-tag.cc.
|
virtual |
Deserializes information from buffer to this instance of SatMacLinkTimeTag.
i | Buffer from which the information is deserialized |
Definition at line 351 of file satellite-time-tag.cc.
References m_senderLinkTimestamp.
|
virtual |
Get the type ID of instance.
Definition at line 332 of file satellite-time-tag.cc.
References GetTypeId().
Time ns3::SatMacLinkTimeTag::GetSenderLinkTimestamp | ( | void | ) | const |
Get sender time stamp of this tag.
Definition at line 365 of file satellite-time-tag.cc.
References m_senderLinkTimestamp.
Referenced by ns3::SatGeoMac::RxTraces(), and ns3::SatMac::RxTraces().
|
virtual |
Get serialized size of SatMacLinkTimeTag.
Definition at line 338 of file satellite-time-tag.cc.
|
static |
Get the type ID.
Definition at line 324 of file satellite-time-tag.cc.
Referenced by GetInstanceTypeId().
|
virtual |
Print time stamp of this instance of SatMacLinkTimeTag.
&os | Output stream to which tag timestamp is printed. |
Definition at line 359 of file satellite-time-tag.cc.
References m_senderLinkTimestamp.
|
virtual |
Serializes information to buffer from this instance of SatMacLinkTimeTag.
i | Buffer in which the information is serialized |
Definition at line 344 of file satellite-time-tag.cc.
References m_senderLinkTimestamp.
void ns3::SatMacLinkTimeTag::SetSenderLinkTimestamp | ( | Time | senderLinkTimestamp | ) |
Set sender time stamp of this tag.
senderTimestamp | Sender time stamp |
Definition at line 371 of file satellite-time-tag.cc.
References m_senderLinkTimestamp.
|
private |
Definition at line 388 of file satellite-time-tag.h.
Referenced by Deserialize(), GetSenderLinkTimestamp(), Print(), Serialize(), and SetSenderLinkTimestamp().