ns3::SatGroundStationAddressTag Class Reference

Tag to store ground station destination address. More...

#include "satellite-ground-station-address-tag.h"

+ Inheritance diagram for ns3::SatGroundStationAddressTag:
+ Collaboration diagram for ns3::SatGroundStationAddressTag:

Public Member Functions

 SatGroundStationAddressTag ()
 Default constructor. More...
 
 SatGroundStationAddressTag (Mac48Address groundStationAddress)
 Constructor with initialization parameters. More...
 
virtual void Deserialize (TagBuffer i)
 Deserializes information from buffer to this instance of SatGroundStationAddressTag. More...
 
Mac48Address GetGroundStationAddress (void) const
 Get the ground station MAC address. More...
 
virtual TypeId GetInstanceTypeId (void) const
 Get the type ID of instance. More...
 
virtual uint32_t GetSerializedSize () const
 Get serialized size of SatGroundStationAddressTag. More...
 
virtual void Print (std::ostream &os) const
 Print time stamp of this instance of SatGroundStationAddressTag. More...
 
virtual void Serialize (TagBuffer i) const
 Serializes information to buffer from this instance of SatGroundStationAddressTag. More...
 
void SetGroundStationAddress (Mac48Address groundStationAddress)
 Set the ground station MAC address. More...
 

Static Public Member Functions

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

Private Attributes

Mac48Address m_groundStationAddress
 

Static Private Attributes

static const uint32_t ADDRESS_LENGHT = 6
 

Detailed Description

Tag to store ground station destination address.

Use for routing in constellations

Definition at line 34 of file satellite-ground-station-address-tag.h.

Constructor & Destructor Documentation

◆ SatGroundStationAddressTag() [1/2]

ns3::SatGroundStationAddressTag::SatGroundStationAddressTag ( )

Default constructor.

Definition at line 32 of file satellite-ground-station-address-tag.cc.

◆ SatGroundStationAddressTag() [2/2]

ns3::SatGroundStationAddressTag::SatGroundStationAddressTag ( Mac48Address  groundStationAddress)

Constructor with initialization parameters.

Parameters
groundStationAddress

Definition at line 37 of file satellite-ground-station-address-tag.cc.

Member Function Documentation

◆ Deserialize()

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

Deserializes information from buffer to this instance of SatGroundStationAddressTag.

Parameters
iBuffer from which the information is deserialized

Definition at line 76 of file satellite-ground-station-address-tag.cc.

References ADDRESS_LENGHT, and m_groundStationAddress.

◆ GetGroundStationAddress()

Mac48Address ns3::SatGroundStationAddressTag::GetGroundStationAddress ( void  ) const

Get the ground station MAC address.

Returns
ground station MAC address

Definition at line 93 of file satellite-ground-station-address-tag.cc.

References m_groundStationAddress.

Referenced by ns3::PointToPointIslNetDevice::Receive(), ns3::SatGeoNetDevice::ReceivePacketFeeder(), and ns3::SatGeoNetDevice::ReceivePacketUser().

+ Here is the caller graph for this function:

◆ GetInstanceTypeId()

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

Get the type ID of instance.

Returns
the object TypeId

Definition at line 53 of file satellite-ground-station-address-tag.cc.

References GetTypeId().

+ Here is the call graph for this function:

◆ GetSerializedSize()

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

Get serialized size of SatGroundStationAddressTag.

Returns
Serialized size in bytes

Definition at line 59 of file satellite-ground-station-address-tag.cc.

References ADDRESS_LENGHT.

◆ GetTypeId()

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

Get the type ID.

Returns
the object TypeId

Definition at line 44 of file satellite-ground-station-address-tag.cc.

Referenced by GetInstanceTypeId().

+ Here is the caller graph for this function:

◆ Print()

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

Print time stamp of this instance of SatGroundStationAddressTag.

Parameters
&osOutput stream to which tag timestamp is printed.

Definition at line 87 of file satellite-ground-station-address-tag.cc.

References m_groundStationAddress.

◆ Serialize()

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

Serializes information to buffer from this instance of SatGroundStationAddressTag.

Parameters
iBuffer in which the information is serialized

Definition at line 65 of file satellite-ground-station-address-tag.cc.

References ADDRESS_LENGHT, and m_groundStationAddress.

◆ SetGroundStationAddress()

void ns3::SatGroundStationAddressTag::SetGroundStationAddress ( Mac48Address  groundStationAddress)

Set the ground station MAC address.

Parameters
groundStationAddressground station MAC address

Definition at line 99 of file satellite-ground-station-address-tag.cc.

References m_groundStationAddress.

Member Data Documentation

◆ ADDRESS_LENGHT

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

◆ m_groundStationAddress

Mac48Address ns3::SatGroundStationAddressTag::m_groundStationAddress
private

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