A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends 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

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

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

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.

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

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.

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

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

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

uint32_t ns3::UanTxMode::GetDataRateBps ( void  ) const
Returns
Data rate of the TX mode in bits per second

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

Referenced by ns3::UanTransducerHd::Receive(), ns3::UanPhyGen::SendPacket(), ns3::UanPhyGen::StartRxPacket(), and ns3::UanTransducerHd::Transmit().

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

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

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

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

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

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

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

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

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

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

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

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


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