Time tag used to identify the time when packet is enqueued at device level. More...
#include "satellite-time-tag.h"
Inheritance diagram for ns3::SatDevTimeTag:
Collaboration diagram for ns3::SatDevTimeTag:Public Member Functions | |
| SatDevTimeTag () | |
| Default constructor. More... | |
| SatDevTimeTag (Time senderTimestamp) | |
| Constructor with initialization parameters. More... | |
| virtual void | Deserialize (TagBuffer i) |
| Deserializes information from buffer to this instance of SatDevTimeTag. More... | |
| virtual TypeId | GetInstanceTypeId (void) const |
| Get the type ID of instance. More... | |
| Time | GetSenderTimestamp (void) const |
| Get sender time stamp of this tag. More... | |
| virtual uint32_t | GetSerializedSize () const |
| Get serialized size of SatDevTimeTag. More... | |
| virtual void | Print (std::ostream &os) const |
| Print time stamp of this instance of SatDevTimeTag. More... | |
| virtual void | Serialize (TagBuffer i) const |
| Serializes information to buffer from this instance of SatDevTimeTag. More... | |
| void | SetSenderTimestamp (Time senderTimestamp) |
| 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_senderTimestamp |
Time tag used to identify the time when packet is enqueued at device level.
Definition at line 399 of file satellite-time-tag.h.
| ns3::SatDevTimeTag::SatDevTimeTag | ( | ) |
Default constructor.
Definition at line 382 of file satellite-time-tag.cc.
| ns3::SatDevTimeTag::SatDevTimeTag | ( | Time | senderTimestamp | ) |
Constructor with initialization parameters.
| senderTimestamp |
Definition at line 388 of file satellite-time-tag.cc.
|
virtual |
Deserializes information from buffer to this instance of SatDevTimeTag.
| i | Buffer from which the information is deserialized |
Definition at line 422 of file satellite-time-tag.cc.
References m_senderTimestamp.
|
virtual |
Get the type ID of instance.
Definition at line 403 of file satellite-time-tag.cc.
References GetTypeId().
Here is the call graph for this function:| Time ns3::SatDevTimeTag::GetSenderTimestamp | ( | void | ) | const |
Get sender time stamp of this tag.
Definition at line 436 of file satellite-time-tag.cc.
References m_senderTimestamp.
Referenced by ns3::SatLorawanNetDevice::Receive(), and ns3::SatNetDevice::Receive().
Here is the caller graph for this function:
|
virtual |
Get serialized size of SatDevTimeTag.
Definition at line 409 of file satellite-time-tag.cc.
|
static |
Get the type ID.
Definition at line 395 of file satellite-time-tag.cc.
Referenced by GetInstanceTypeId().
Here is the caller graph for this function:
|
virtual |
Print time stamp of this instance of SatDevTimeTag.
| &os | Output stream to which tag timestamp is printed. |
Definition at line 430 of file satellite-time-tag.cc.
References m_senderTimestamp.
|
virtual |
Serializes information to buffer from this instance of SatDevTimeTag.
| i | Buffer in which the information is serialized |
Definition at line 415 of file satellite-time-tag.cc.
References m_senderTimestamp.
| void ns3::SatDevTimeTag::SetSenderTimestamp | ( | Time | senderTimestamp | ) |
Set sender time stamp of this tag.
| senderTimestamp | Sender time stamp |
Definition at line 442 of file satellite-time-tag.cc.
References m_senderTimestamp.
|
private |
Definition at line 462 of file satellite-time-tag.h.
Referenced by Deserialize(), GetSenderTimestamp(), Print(), Serialize(), and SetSenderTimestamp().