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

Abstraction of packet modulation information. More...

#include <uan-tx-mode.h>

Public Types

enum  ModulationType { PSK, QAM, FSK, OTHER }

Public Member Functions

 UanTxMode ()
 ~UanTxMode ()
uint32_t GetBandwidthHz (void) const
uint32_t GetCenterFreqHz (void) const
uint32_t GetConstellationSize (void) const
uint32_t GetDataRateBps (void) const
ModulationType GetModType (void) const
std::string GetName (void) const
uint32_t GetPhyRateSps (void) const
uint32_t GetUid (void) const

Private Attributes

uint32_t m_uid

Friends

std::ostream & operator<< (std::ostream &os, const UanTxMode &mode)
 Writes tx mode entry to stream os.
std::istream & operator>> (std::istream &is, UanTxMode &mode)
class UanTxModeFactory

Detailed Description

Abstraction of packet modulation information.

Definition at line 36 of file uan-tx-mode.h.

Member Enumeration Documentation

Modulation type

Enumerator:
PSK 
QAM 
FSK 
OTHER 

Definition at line 45 of file uan-tx-mode.h.

Constructor & Destructor Documentation

ns3::UanTxMode::UanTxMode ( )

Definition at line 29 of file uan-tx-mode.cc.

ns3::UanTxMode::~UanTxMode ( )

Definition at line 33 of file uan-tx-mode.cc.

Member Function Documentation

uint32_t ns3::UanTxMode::GetBandwidthHz ( void  ) const
Returns
Bandwidth of transmitted signal in Hz

Definition at line 63 of file uan-tx-mode.cc.

References ns3::UanTxModeFactory::GetFactory(), ns3::UanTxModeFactory::GetModeItem(), ns3::UanTxModeFactory::UanTxModeItem::m_bwHz, and m_uid.

Referenced by ns3::UanPhyCalcSinrDual::CalcSinrDb(), and ns3::UanPhyGen::CalculateSinrDb().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

uint32_t ns3::UanTxMode::GetCenterFreqHz ( void  ) const
Returns
Center frequency of transmitted signal in Hz

Definition at line 57 of file uan-tx-mode.cc.

References ns3::UanTxModeFactory::GetFactory(), ns3::UanTxModeFactory::GetModeItem(), ns3::UanTxModeFactory::UanTxModeItem::m_cfHz, and m_uid.

Referenced by ns3::UanPhyCalcSinrDual::CalcSinrDb(), ns3::UanPhyGen::CalculateSinrDb(), and ns3::UanPropModelThorp::GetPathLossDb().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

uint32_t ns3::UanTxMode::GetConstellationSize ( void  ) const
Returns
Number of constellation points in modulation

Definition at line 69 of file uan-tx-mode.cc.

References ns3::UanTxModeFactory::GetFactory(), ns3::UanTxModeFactory::GetModeItem(), ns3::UanTxModeFactory::UanTxModeItem::m_constSize, and m_uid.

+ Here is the call graph for this function:

uint32_t ns3::UanTxMode::GetDataRateBps ( void  ) const
UanTxMode::ModulationType ns3::UanTxMode::GetModType ( void  ) const
Returns
The modulation type of the mode

Definition at line 39 of file uan-tx-mode.cc.

References ns3::UanTxModeFactory::GetFactory(), ns3::UanTxModeFactory::GetModeItem(), ns3::UanTxModeFactory::UanTxModeItem::m_type, and m_uid.

Referenced by ns3::UanPhyCalcSinrDual::CalcSinrDb(), ns3::UanPhyCalcSinrDefault::CalcSinrDb(), and ns3::UanPhyCalcSinrFhFsk::CalcSinrDb().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::string ns3::UanTxMode::GetName ( void  ) const
Returns
Name

Definition at line 75 of file uan-tx-mode.cc.

References ns3::UanTxModeFactory::GetFactory(), ns3::UanTxModeFactory::GetModeItem(), ns3::UanTxModeFactory::UanTxModeItem::m_name, and m_uid.

Referenced by ns3::UanPhyCalcSinrDual::CalcSinrDb().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

uint32_t ns3::UanTxMode::GetPhyRateSps ( void  ) const
Returns
PHY rate in symbols per second

Definition at line 51 of file uan-tx-mode.cc.

References ns3::UanTxModeFactory::GetFactory(), ns3::UanTxModeFactory::GetModeItem(), ns3::UanTxModeFactory::UanTxModeItem::m_phyRateSps, and m_uid.

Referenced by ns3::UanPhyCalcSinrFhFsk::CalcSinrDb().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

uint32_t ns3::UanTxMode::GetUid ( void  ) const
Returns
Unique ID

Definition at line 81 of file uan-tx-mode.cc.

References m_uid.

Referenced by ns3::UanPhyGen::StartRxPacket().

+ Here is the caller graph for this function:

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const UanTxMode mode 
)
friend

Writes tx mode entry to stream os.

Definition at line 87 of file uan-tx-mode.cc.

std::istream& operator>> ( std::istream &  is,
UanTxMode mode 
)
friend

Definition at line 94 of file uan-tx-mode.cc.

friend class UanTxModeFactory
friend

Definition at line 82 of file uan-tx-mode.h.

Member Data Documentation


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