#include <uan-tx-mode.h>
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 | |
UanTxModeItem & | GetModeItem (uint32_t uid) |
UanTxModeItem & | GetModeItem (std::string name) |
UanTxMode | MakeModeFromItem (const UanTxModeItem &item) |
bool | NameUsed (std::string name) |
Static Private Member Functions | |
static UanTxModeFactory & | GetFactory (void) |
Private Attributes | |
std::map< uint32_t, UanTxModeItem > | m_modes |
uint32_t | m_nextUid |
Friends | |
class | UanTxMode |
Definition at line 99 of file uan-tx-mode.h.
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.
|
static |
type | modulation type |
dataRateBps | Data rate in BPS |
phyRateSps | Symbol rate in symbols per second |
cfHz | Center frequency in Hz |
bwHz | Bandwidth in Hz |
constSize | Modulation constellation size (2 for BPSK, 4 for QPSK) |
name | Unique 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().
|
staticprivate |
Definition at line 216 of file uan-tx-mode.cc.
Referenced by CreateMode(), ns3::UanTxMode::GetBandwidthHz(), ns3::UanTxMode::GetCenterFreqHz(), ns3::UanTxMode::GetConstellationSize(), ns3::UanTxMode::GetDataRateBps(), GetMode(), ns3::UanTxMode::GetModType(), ns3::UanTxMode::GetName(), and ns3::UanTxMode::GetPhyRateSps().
|
static |
name | String name of mode |
Definition at line 194 of file uan-tx-mode.cc.
References GetFactory(), GetModeItem(), and MakeModeFromItem().
|
static |
uid | Unique ID of mode |
Definition at line 201 of file uan-tx-mode.cc.
References GetFactory(), GetModeItem(), and MakeModeFromItem().
|
private |
Definition at line 167 of file uan-tx-mode.cc.
References m_modes, m_nextUid, and NS_FATAL_ERROR.
Referenced by CreateMode(), ns3::UanTxMode::GetBandwidthHz(), ns3::UanTxMode::GetCenterFreqHz(), ns3::UanTxMode::GetConstellationSize(), ns3::UanTxMode::GetDataRateBps(), GetMode(), ns3::UanTxMode::GetModType(), ns3::UanTxMode::GetName(), and ns3::UanTxMode::GetPhyRateSps().
|
private |
Definition at line 179 of file uan-tx-mode.cc.
References m_modes, and NS_FATAL_ERROR.
|
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().
|
private |
Definition at line 117 of file uan-tx-mode.cc.
References m_modes.
Referenced by CreateMode().
|
friend |
Definition at line 134 of file uan-tx-mode.h.
|
private |
Definition at line 149 of file uan-tx-mode.h.
Referenced by CreateMode(), GetModeItem(), NameUsed(), and ~UanTxModeFactory().
|
private |
Definition at line 135 of file uan-tx-mode.h.
Referenced by CreateMode(), and GetModeItem().