ns3::SatMacTag Class Reference

This class implements a tag that carries the satellite MAC specific information, such as source and destination MAC address. More...

#include "satellite-mac-tag.h"

+ Inheritance diagram for ns3::SatMacTag:
+ Collaboration diagram for ns3::SatMacTag:

Public Member Functions

 SatMacTag ()
 Default constructor. More...
 
 ~SatMacTag ()
 Destructor for SatMacTag. More...
 
virtual void Deserialize (TagBuffer i)
 Deserializes information from buffer to this instance of SatMacTag. More...
 
Mac48Address GetDestAddress (void) const
 Get destination MAC address. More...
 
virtual TypeId GetInstanceTypeId (void) const
 Get the type ID of instance. More...
 
virtual uint32_t GetSerializedSize (void) const
 Get serialized size of SatMacTag. More...
 
Mac48Address GetSourceAddress (void) const
 Get source MAC address. More...
 
virtual void Print (std::ostream &os) const
 Print time stamp of this instance of SatMacTag. More...
 
virtual void Serialize (TagBuffer i) const
 Serializes information to buffer from this instance of SatMacTag. More...
 
void SetDestAddress (Mac48Address dest)
 Set destination MAC address. More...
 
void SetSourceAddress (Mac48Address source)
 Set source MAC address. More...
 

Static Public Member Functions

static TypeId GetTypeId (void)
 Get the type ID. More...
 

Private Attributes

Mac48Address m_destAddress
 
Mac48Address m_sourceAddress
 

Static Private Attributes

static const uint32_t ADDRESS_LENGHT = 6
 

Detailed Description

This class implements a tag that carries the satellite MAC specific information, such as source and destination MAC address.

Definition at line 36 of file satellite-mac-tag.h.

Constructor & Destructor Documentation

◆ SatMacTag()

ns3::SatMacTag::SatMacTag ( )

Default constructor.

Definition at line 33 of file satellite-mac-tag.cc.

◆ ~SatMacTag()

ns3::SatMacTag::~SatMacTag ( )

Destructor for SatMacTag.

Definition at line 38 of file satellite-mac-tag.cc.

Member Function Documentation

◆ Deserialize()

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

Deserializes information from buffer to this instance of SatMacTag.

Parameters
iBuffer from which the information is deserialized

Definition at line 109 of file satellite-mac-tag.cc.

References ADDRESS_LENGHT, m_destAddress, and m_sourceAddress.

◆ GetDestAddress()

◆ GetInstanceTypeId()

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

Get the type ID of instance.

Returns
the object TypeId

Definition at line 51 of file satellite-mac-tag.cc.

References GetTypeId().

+ Here is the call graph for this function:

◆ GetSerializedSize()

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

Get serialized size of SatMacTag.

Returns
Serialized size in bytes

Definition at line 87 of file satellite-mac-tag.cc.

References ADDRESS_LENGHT.

◆ GetSourceAddress()

◆ GetTypeId()

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

Get the type ID.

Returns
the object TypeId

Definition at line 44 of file satellite-mac-tag.cc.

Referenced by GetInstanceTypeId().

+ Here is the caller graph for this function:

◆ Print()

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

Print time stamp of this instance of SatMacTag.

Parameters
&osOutput stream to which tag timestamp is printed.

Definition at line 123 of file satellite-mac-tag.cc.

References m_destAddress, and m_sourceAddress.

◆ Serialize()

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

Serializes information to buffer from this instance of SatMacTag.

Parameters
iBuffer in which the information is serialized

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

References ADDRESS_LENGHT, m_destAddress, and m_sourceAddress.

◆ SetDestAddress()

◆ SetSourceAddress()

Member Data Documentation

◆ ADDRESS_LENGHT

const uint32_t ns3::SatMacTag::ADDRESS_LENGHT = 6
staticprivate

Definition at line 110 of file satellite-mac-tag.h.

Referenced by Deserialize(), GetSerializedSize(), and Serialize().

◆ m_destAddress

Mac48Address ns3::SatMacTag::m_destAddress
private

Definition at line 112 of file satellite-mac-tag.h.

Referenced by Deserialize(), GetDestAddress(), Print(), Serialize(), and SetDestAddress().

◆ m_sourceAddress

Mac48Address ns3::SatMacTag::m_sourceAddress
private

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