Tag to store ground station destination address. More...
#include "satellite-ground-station-address-tag.h"
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 |
Tag to store ground station destination address.
Use for routing in constellations
Definition at line 34 of file satellite-ground-station-address-tag.h.
ns3::SatGroundStationAddressTag::SatGroundStationAddressTag | ( | ) |
Default constructor.
Definition at line 32 of file satellite-ground-station-address-tag.cc.
ns3::SatGroundStationAddressTag::SatGroundStationAddressTag | ( | Mac48Address | groundStationAddress | ) |
Constructor with initialization parameters.
groundStationAddress |
Definition at line 37 of file satellite-ground-station-address-tag.cc.
|
virtual |
Deserializes information from buffer to this instance of SatGroundStationAddressTag.
i | Buffer from which the information is deserialized |
Definition at line 76 of file satellite-ground-station-address-tag.cc.
References ADDRESS_LENGHT, and m_groundStationAddress.
Mac48Address ns3::SatGroundStationAddressTag::GetGroundStationAddress | ( | void | ) | const |
Get the 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().
|
virtual |
Get the type ID of instance.
Definition at line 53 of file satellite-ground-station-address-tag.cc.
References GetTypeId().
|
virtual |
Get serialized size of SatGroundStationAddressTag.
Definition at line 59 of file satellite-ground-station-address-tag.cc.
References ADDRESS_LENGHT.
|
static |
Get the type ID.
Definition at line 44 of file satellite-ground-station-address-tag.cc.
Referenced by GetInstanceTypeId().
|
virtual |
Print time stamp of this instance of SatGroundStationAddressTag.
&os | Output stream to which tag timestamp is printed. |
Definition at line 87 of file satellite-ground-station-address-tag.cc.
References m_groundStationAddress.
|
virtual |
Serializes information to buffer from this instance of SatGroundStationAddressTag.
i | Buffer in which the information is serialized |
Definition at line 65 of file satellite-ground-station-address-tag.cc.
References ADDRESS_LENGHT, and m_groundStationAddress.
void ns3::SatGroundStationAddressTag::SetGroundStationAddress | ( | Mac48Address | groundStationAddress | ) |
Set the ground station MAC address.
groundStationAddress | ground station MAC address |
Definition at line 99 of file satellite-ground-station-address-tag.cc.
References m_groundStationAddress.
|
staticprivate |
Definition at line 97 of file satellite-ground-station-address-tag.h.
Referenced by Deserialize(), GetSerializedSize(), and Serialize().
|
private |
Definition at line 99 of file satellite-ground-station-address-tag.h.
Referenced by Deserialize(), GetGroundStationAddress(), Print(), Serialize(), and SetGroundStationAddress().