ns3::SatTimeTag Class Reference

Time tag used to identify the time when packet is enqueued at LLC level. More...

#include "satellite-time-tag.h"

+ Inheritance diagram for ns3::SatTimeTag:
+ Collaboration diagram for ns3::SatTimeTag:

Public Member Functions

 SatTimeTag ()
 Default constructor. More...
 
 SatTimeTag (Time senderTimestamp)
 Constructor with initialization parameters. More...
 
virtual void Deserialize (TagBuffer i)
 Deserializes information from buffer to this instance of SatTimeTag. 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 SatTimeTag. More...
 
virtual void Print (std::ostream &os) const
 Print time stamp of this instance of SatTimeTag. More...
 
virtual void Serialize (TagBuffer i) const
 Serializes information to buffer from this instance of SatTimeTag. 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
 

Detailed Description

Time tag used to identify the time when packet is enqueued at LLC level.

Definition at line 41 of file satellite-time-tag.h.

Constructor & Destructor Documentation

◆ SatTimeTag() [1/2]

ns3::SatTimeTag::SatTimeTag ( )

Default constructor.

Definition at line 36 of file satellite-time-tag.cc.

◆ SatTimeTag() [2/2]

ns3::SatTimeTag::SatTimeTag ( Time  senderTimestamp)

Constructor with initialization parameters.

Parameters
senderTimestamp

Definition at line 42 of file satellite-time-tag.cc.

Member Function Documentation

◆ Deserialize()

void ns3::SatTimeTag::Deserialize ( TagBuffer  i)
virtual

Deserializes information from buffer to this instance of SatTimeTag.

Parameters
iBuffer from which the information is deserialized

Definition at line 75 of file satellite-time-tag.cc.

References m_senderTimestamp.

◆ GetInstanceTypeId()

TypeId ns3::SatTimeTag::GetInstanceTypeId ( void  ) const
virtual

Get the type ID of instance.

Returns
the object TypeId

Definition at line 56 of file satellite-time-tag.cc.

References GetTypeId().

+ Here is the call graph for this function:

◆ GetSenderTimestamp()

Time ns3::SatTimeTag::GetSenderTimestamp ( void  ) const

Get sender time stamp of this tag.

Returns
Sender timestamp

Definition at line 89 of file satellite-time-tag.cc.

References m_senderTimestamp.

Referenced by ns3::SatBaseEncapsulator::GetHolDelay().

+ Here is the caller graph for this function:

◆ GetSerializedSize()

uint32_t ns3::SatTimeTag::GetSerializedSize ( void  ) const
virtual

Get serialized size of SatTimeTag.

Returns
Serialized size in bytes

Definition at line 62 of file satellite-time-tag.cc.

◆ GetTypeId()

TypeId ns3::SatTimeTag::GetTypeId ( void  )
static

Get the type ID.

Returns
the object TypeId

Definition at line 49 of file satellite-time-tag.cc.

Referenced by GetInstanceTypeId().

+ Here is the caller graph for this function:

◆ Print()

void ns3::SatTimeTag::Print ( std::ostream &  os) const
virtual

Print time stamp of this instance of SatTimeTag.

Parameters
&osOutput stream to which tag timestamp is printed.

Definition at line 83 of file satellite-time-tag.cc.

References m_senderTimestamp.

◆ Serialize()

void ns3::SatTimeTag::Serialize ( TagBuffer  i) const
virtual

Serializes information to buffer from this instance of SatTimeTag.

Parameters
iBuffer in which the information is serialized

Definition at line 68 of file satellite-time-tag.cc.

References m_senderTimestamp.

◆ SetSenderTimestamp()

void ns3::SatTimeTag::SetSenderTimestamp ( Time  senderTimestamp)

Set sender time stamp of this tag.

Parameters
senderTimestampSender time stamp

Definition at line 95 of file satellite-time-tag.cc.

References m_senderTimestamp.

Member Data Documentation

◆ m_senderTimestamp

Time ns3::SatTimeTag::m_senderTimestamp
private

The documentation for this class was generated from the following files: