A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ns3::RngReq Class Reference

#include <mac-messages.h>

+ Inheritance diagram for ns3::RngReq:
+ Collaboration diagram for ns3::RngReq:

Public Member Functions

 RngReq (void)
 This class implements the DSA-REQ message described by "IEEE Standard for Local and metropolitan area networks Part 16: Air Interface for Fixed Broadband Wireless Access Systems" 6.3.2.3.10 DSA-REQ message, page 62.
virtual ~RngReq (void)
uint32_t Deserialize (Buffer::Iterator start)
virtual TypeId GetInstanceTypeId (void) const
Mac48Address GetMacAddress (void) const
std::string GetName (void) const
uint8_t GetRangingAnomalies (void) const
uint8_t GetReqDlBurstProfile (void) const
uint32_t GetSerializedSize (void) const
void Print (std::ostream &os) const
void PrintDebug (void) const
void Serialize (Buffer::Iterator start) const
void SetMacAddress (Mac48Address macAddress)
void SetRangingAnomalies (uint8_t rangingAnomalies)
void SetReqDlBurstProfile (uint8_t reqDlBurstProfile)
- Public Member Functions inherited from ns3::Header
virtual ~Header ()

Static Public Member Functions

static TypeId GetTypeId (void)
 This method returns the TypeId associated to ns3::RngReq.

Private Attributes

Mac48Address m_macAddress
uint8_t m_rangingAnomalies
uint8_t m_reqDlBurstProfile
uint8_t m_reserved

Additional Inherited Members

- Protected Member Functions inherited from ns3::ObjectBase
void ConstructSelf (const AttributeConstructionList &attributes)
virtual void NotifyConstructionCompleted (void)

Detailed Description

Definition at line 458 of file mac-messages.h.

Constructor & Destructor Documentation

ns3::RngReq::RngReq ( void  )

This class implements the DSA-REQ message described by "IEEE Standard for Local and metropolitan area networks Part 16: Air Interface for Fixed Broadband Wireless Access Systems" 6.3.2.3.10 DSA-REQ message, page 62.

Definition at line 111 of file mac-messages.cc.

ns3::RngReq::~RngReq ( void  )
virtual

Definition at line 119 of file mac-messages.cc.

Member Function Documentation

uint32_t ns3::RngReq::Deserialize ( Buffer::Iterator  start)
virtual
Parameters
startan iterator which points to where the header should written.
Returns
the number of bytes read.

This method is used by Packet::RemoveHeader to re-create a header from the byte buffer of a packet. The data read is expected to match bit-for-bit the representation of this header in real networks.

Implements ns3::Header.

Definition at line 210 of file mac-messages.cc.

References ns3::Buffer::Iterator::GetDistanceFrom(), m_macAddress, m_rangingAnomalies, m_reqDlBurstProfile, m_reserved, ns3::ReadFrom(), ns3::Buffer::Iterator::ReadU8(), and visualizer.core::start().

+ Here is the call graph for this function:

TypeId ns3::RngReq::GetInstanceTypeId ( void  ) const
virtual
Returns
the TypeId associated to the most-derived type of this instance.

This method is typically implemented by ns3::Object::GetInstanceTypeId but some classes which derive from ns3::ObjectBase directly have to implement it themselves.

Implements ns3::ObjectBase.

Definition at line 173 of file mac-messages.cc.

References GetTypeId().

+ Here is the call graph for this function:

Mac48Address ns3::RngReq::GetMacAddress ( void  ) const

Definition at line 148 of file mac-messages.cc.

References m_macAddress.

Referenced by ns3::BSLinkManager::PerformInitialRanging().

+ Here is the caller graph for this function:

std::string ns3::RngReq::GetName ( void  ) const

Definition at line 160 of file mac-messages.cc.

uint8_t ns3::RngReq::GetRangingAnomalies ( void  ) const

Definition at line 154 of file mac-messages.cc.

References m_rangingAnomalies.

uint8_t ns3::RngReq::GetReqDlBurstProfile ( void  ) const

Definition at line 142 of file mac-messages.cc.

References m_reqDlBurstProfile.

Referenced by ns3::BurstProfileManager::GetModulationTypeForSS(), and ns3::BSLinkManager::PerformInitialRanging().

+ Here is the caller graph for this function:

uint32_t ns3::RngReq::GetSerializedSize ( void  ) const
virtual
Returns
the expected size of the header.

This method is used by Packet::AddHeader to store a header into the byte buffer of a packet. This method should return the number of bytes which are needed to store the full header data by Serialize.

Implements ns3::Header.

Definition at line 194 of file mac-messages.cc.

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

This method returns the TypeId associated to ns3::RngReq.

No Attributes defined for this type.
No TraceSources defined for this type.

Reimplemented from ns3::Header.

Definition at line 166 of file mac-messages.cc.

References ns3::TypeId::SetParent().

Referenced by GetInstanceTypeId().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::RngReq::Print ( std::ostream &  os) const
virtual
Parameters
osoutput stream This method is used by Packet::Print to print the content of a trailer as ascii data to a c++ output stream. Although the trailer is free to format its output as it wishes, it is recommended to follow a few rules to integrate with the packet pretty printer: start with flags, small field values located between a pair of parens. Values should be separated by whitespace. Follow the parens with the important fields, separated by whitespace. i.e.: (field1 val1 field2 val2 field3 val3) field4 val4 field5 val5

Implements ns3::Header.

Definition at line 179 of file mac-messages.cc.

References m_macAddress, m_rangingAnomalies, and m_reqDlBurstProfile.

void ns3::RngReq::PrintDebug ( void  ) const

Definition at line 186 of file mac-messages.cc.

References m_macAddress, m_rangingAnomalies, m_reqDlBurstProfile, and NS_LOG_DEBUG.

Referenced by ns3::BSLinkManager::PerformRanging().

+ Here is the caller graph for this function:

void ns3::RngReq::Serialize ( Buffer::Iterator  start) const
virtual
Parameters
startan iterator which points to where the header should be written.

This method is used by Packet::AddHeader to store a header into the byte buffer of a packet. The data written is expected to match bit-for-bit the representation of this header in a real network.

Implements ns3::Header.

Definition at line 200 of file mac-messages.cc.

References m_macAddress, m_rangingAnomalies, m_reqDlBurstProfile, m_reserved, visualizer.core::start(), ns3::WriteTo(), and ns3::Buffer::Iterator::WriteU8().

+ Here is the call graph for this function:

void ns3::RngReq::SetMacAddress ( Mac48Address  macAddress)

Definition at line 130 of file mac-messages.cc.

References m_macAddress.

Referenced by ns3::SSLinkManager::SendRangingRequest().

+ Here is the caller graph for this function:

void ns3::RngReq::SetRangingAnomalies ( uint8_t  rangingAnomalies)

Definition at line 136 of file mac-messages.cc.

References m_rangingAnomalies.

Referenced by ns3::SSLinkManager::SendRangingRequest().

+ Here is the caller graph for this function:

void ns3::RngReq::SetReqDlBurstProfile ( uint8_t  reqDlBurstProfile)

Definition at line 124 of file mac-messages.cc.

References m_reqDlBurstProfile.

Referenced by ns3::SSLinkManager::SendRangingRequest().

+ Here is the caller graph for this function:

Member Data Documentation

Mac48Address ns3::RngReq::m_macAddress
private

Definition at line 491 of file mac-messages.h.

Referenced by Deserialize(), GetMacAddress(), Print(), PrintDebug(), Serialize(), and SetMacAddress().

uint8_t ns3::RngReq::m_rangingAnomalies
private
uint8_t ns3::RngReq::m_reqDlBurstProfile
private
uint8_t ns3::RngReq::m_reserved
private

Definition at line 487 of file mac-messages.h.

Referenced by Deserialize(), and Serialize().


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