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

#include <uan-tx-mode.h>

+ Collaboration diagram for ns3::UanTxModeFactory:

Classes

struct  UanTxModeItem

Public Member Functions

 UanTxModeFactory ()
 ~UanTxModeFactory ()

Static Public Member Functions

static UanTxMode CreateMode (UanTxMode::ModulationType type, uint32_t dataRateBps, uint32_t phyRateSps, uint32_t cfHz, uint32_t bwHz, uint32_t constSize, std::string name)
static UanTxMode GetMode (std::string name)
static UanTxMode GetMode (uint32_t uid)

Private Member Functions

UanTxModeItemGetModeItem (uint32_t uid)
UanTxModeItemGetModeItem (std::string name)
UanTxMode MakeModeFromItem (const UanTxModeItem &item)
bool NameUsed (std::string name)

Static Private Member Functions

static UanTxModeFactoryGetFactory (void)

Private Attributes

std::map< uint32_t, UanTxModeItemm_modes
uint32_t m_nextUid

Friends

class UanTxMode

Detailed Description

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

Constructor & Destructor Documentation

ns3::UanTxModeFactory::UanTxModeFactory ( )

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

ns3::UanTxModeFactory::~UanTxModeFactory ( )

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

References m_modes.

Member Function Documentation

UanTxMode ns3::UanTxModeFactory::CreateMode ( UanTxMode::ModulationType  type,
uint32_t  dataRateBps,
uint32_t  phyRateSps,
uint32_t  cfHz,
uint32_t  bwHz,
uint32_t  constSize,
std::string  name 
)
static
Parameters
typemodulation type
dataRateBpsData rate in BPS
phyRateSpsSymbol rate in symbols per second
cfHzCenter frequency in Hz
bwHzBandwidth in Hz
constSizeModulation constellation size (2 for BPSK, 4 for QPSK)
nameUnique string name for this transmission mode

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

References GetFactory(), GetModeItem(), ns3::UanTxModeFactory::UanTxModeItem::m_bwHz, ns3::UanTxModeFactory::UanTxModeItem::m_cfHz, ns3::UanTxModeFactory::UanTxModeItem::m_constSize, ns3::UanTxModeFactory::UanTxModeItem::m_dataRateBps, m_modes, ns3::UanTxModeFactory::UanTxModeItem::m_name, m_nextUid, ns3::UanTxModeFactory::UanTxModeItem::m_phyRateSps, ns3::UanTxModeFactory::UanTxModeItem::m_type, ns3::UanTxModeFactory::UanTxModeItem::m_uid, MakeModeFromItem(), NameUsed(), and NS_LOG_WARN.

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

UanTxMode ns3::UanTxModeFactory::GetMode ( std::string  name)
static
Parameters
nameString name of mode
Returns
Mode with given name

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

References GetFactory(), GetModeItem(), and MakeModeFromItem().

+ Here is the call graph for this function:

UanTxMode ns3::UanTxModeFactory::GetMode ( uint32_t  uid)
static
Parameters
uidUnique ID of mode
Returns
The mode with given uid

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

References GetFactory(), GetModeItem(), and MakeModeFromItem().

+ Here is the call graph for this function:

UanTxModeFactory::UanTxModeItem & ns3::UanTxModeFactory::GetModeItem ( std::string  name)
private

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

References m_modes, and NS_FATAL_ERROR.

UanTxMode ns3::UanTxModeFactory::MakeModeFromItem ( const UanTxModeItem item)
private

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

References ns3::UanTxMode::m_uid, and ns3::UanTxModeFactory::UanTxModeItem::m_uid.

Referenced by CreateMode(), and GetMode().

+ Here is the caller graph for this function:

bool ns3::UanTxModeFactory::NameUsed ( std::string  name)
private

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

References m_modes.

Referenced by CreateMode().

+ Here is the caller graph for this function:

Friends And Related Function Documentation

friend class UanTxMode
friend

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

Member Data Documentation

std::map<uint32_t, UanTxModeItem> ns3::UanTxModeFactory::m_modes
private

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

Referenced by CreateMode(), GetModeItem(), NameUsed(), and ~UanTxModeFactory().

uint32_t ns3::UanTxModeFactory::m_nextUid
private

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

Referenced by CreateMode(), and GetModeItem().


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