Create a Waveform generator, which can be used to inject specific noise in the channel. More...
#include "waveform-generator-helper.h"
Public Member Functions | |
WaveformGeneratorHelper () | |
~WaveformGeneratorHelper () | |
NetDeviceContainer | Install (NodeContainer c) const |
NetDeviceContainer | Install (Ptr< Node > node) const |
NetDeviceContainer | Install (std::string nodeName) const |
void | SetAntenna (std::string type, std::string n0="", const AttributeValue &v0=EmptyAttributeValue(), std::string n1="", const AttributeValue &v1=EmptyAttributeValue(), std::string n2="", const AttributeValue &v2=EmptyAttributeValue(), std::string n3="", const AttributeValue &v3=EmptyAttributeValue(), std::string n4="", const AttributeValue &v4=EmptyAttributeValue(), std::string n5="", const AttributeValue &v5=EmptyAttributeValue(), std::string n6="", const AttributeValue &v6=EmptyAttributeValue(), std::string n7="", const AttributeValue &v7=EmptyAttributeValue()) |
void | SetChannel (Ptr< SpectrumChannel > channel) |
set the SpectrumChannel that will be used by SpectrumPhy instances created by this helper More... | |
void | SetChannel (std::string channelName) |
set the SpectrumChannel that will be used by SpectrumPhy instances created by this helper More... | |
void | SetDeviceAttribute (std::string n1, const AttributeValue &v1) |
void | SetPhyAttribute (std::string name, const AttributeValue &v) |
void | SetTxPowerSpectralDensity (Ptr< SpectrumValue > txPsd) |
Protected Attributes | |
ObjectFactory | m_antenna |
Object factory for the Antenna objects. More... | |
Ptr< SpectrumChannel > | m_channel |
Channel. More... | |
ObjectFactory | m_device |
Object factory for the NetDevice objects. More... | |
ObjectFactory | m_phy |
Object factory for the phy objects. More... | |
Ptr< SpectrumValue > | m_txPsd |
Tx power spectral density. More... | |
Create a Waveform generator, which can be used to inject specific noise in the channel.
Definition at line 45 of file waveform-generator-helper.h.
ns3::WaveformGeneratorHelper::WaveformGeneratorHelper | ( | ) |
Definition at line 40 of file waveform-generator-helper.cc.
References m_antenna, m_device, m_phy, and ns3::ObjectFactory::SetTypeId().
ns3::WaveformGeneratorHelper::~WaveformGeneratorHelper | ( | ) |
Definition at line 47 of file waveform-generator-helper.cc.
NetDeviceContainer ns3::WaveformGeneratorHelper::Install | ( | NodeContainer | c | ) | const |
c | the set of nodes on which a device must be created |
Definition at line 110 of file waveform-generator-helper.cc.
References ns3::Node::AddDevice(), ns3::NodeContainer::Begin(), ns3::ObjectFactory::Create(), first::devices, ns3::NodeContainer::End(), ns3::Object::GetObject(), m_antenna, m_channel, m_device, m_phy, m_txPsd, NS_ASSERT, NS_ASSERT_MSG(), and third::phy.
Referenced by Install().
NetDeviceContainer ns3::WaveformGeneratorHelper::Install | ( | Ptr< Node > | node | ) | const |
node | the node on which a device must be created |
Definition at line 148 of file waveform-generator-helper.cc.
References Install().
NetDeviceContainer ns3::WaveformGeneratorHelper::Install | ( | std::string | nodeName | ) | const |
nodeName | the name of node on which a device must be created |
Definition at line 154 of file waveform-generator-helper.cc.
References Install().
void ns3::WaveformGeneratorHelper::SetAntenna | ( | std::string | type, |
std::string | n0 = "" , |
||
const AttributeValue & | v0 = EmptyAttributeValue () , |
||
std::string | n1 = "" , |
||
const AttributeValue & | v1 = EmptyAttributeValue () , |
||
std::string | n2 = "" , |
||
const AttributeValue & | v2 = EmptyAttributeValue () , |
||
std::string | n3 = "" , |
||
const AttributeValue & | v3 = EmptyAttributeValue () , |
||
std::string | n4 = "" , |
||
const AttributeValue & | v4 = EmptyAttributeValue () , |
||
std::string | n5 = "" , |
||
const AttributeValue & | v5 = EmptyAttributeValue () , |
||
std::string | n6 = "" , |
||
const AttributeValue & | v6 = EmptyAttributeValue () , |
||
std::string | n7 = "" , |
||
const AttributeValue & | v7 = EmptyAttributeValue () |
||
) |
type | the type of the model to set |
n0 | the name of the attribute to set |
v0 | the value of the attribute to set |
n1 | the name of the attribute to set |
v1 | the value of the attribute to set |
n2 | the name of the attribute to set |
v2 | the value of the attribute to set |
n3 | the name of the attribute to set |
v3 | the value of the attribute to set |
n4 | the name of the attribute to set |
v4 | the value of the attribute to set |
n5 | the name of the attribute to set |
v5 | the value of the attribute to set |
n6 | the name of the attribute to set |
v6 | the value of the attribute to set |
n7 | the name of the attribute to set |
v7 | the value of the attribute to set |
Configure the AntennaModel instance for each new device to be created
Definition at line 86 of file waveform-generator-helper.cc.
References m_antenna, ns3::ObjectFactory::Set(), and ns3::ObjectFactory::SetTypeId().
void ns3::WaveformGeneratorHelper::SetChannel | ( | Ptr< SpectrumChannel > | channel | ) |
set the SpectrumChannel that will be used by SpectrumPhy instances created by this helper
channel |
Definition at line 52 of file waveform-generator-helper.cc.
References third::channel, and m_channel.
void ns3::WaveformGeneratorHelper::SetChannel | ( | std::string | channelName | ) |
set the SpectrumChannel that will be used by SpectrumPhy instances created by this helper
channelName |
Definition at line 58 of file waveform-generator-helper.cc.
References third::channel, and m_channel.
void ns3::WaveformGeneratorHelper::SetDeviceAttribute | ( | std::string | n1, |
const AttributeValue & | v1 | ||
) |
n1 | the name of the attribute to set |
v1 | the value of the attribute to set |
Set these attributes on each AlohaNoackNetDevice created
Definition at line 80 of file waveform-generator-helper.cc.
References m_device, and ns3::ObjectFactory::Set().
void ns3::WaveformGeneratorHelper::SetPhyAttribute | ( | std::string | name, |
const AttributeValue & | v | ||
) |
name | the name of the attribute to set |
v | the value of the attribute |
Set these attributes on each HdOfdmSpectrumPhy instance to be created
Definition at line 73 of file waveform-generator-helper.cc.
References m_phy, and ns3::ObjectFactory::Set().
void ns3::WaveformGeneratorHelper::SetTxPowerSpectralDensity | ( | Ptr< SpectrumValue > | txPsd | ) |
txPsd | the Power Spectral Density to be used for transmission by all created PHY instances |
Definition at line 65 of file waveform-generator-helper.cc.
References m_txPsd, and NS_LOG_FUNCTION.
Referenced by WaveformGeneratorTestCase::DoRun().
|
protected |
Object factory for the Antenna objects.
Definition at line 140 of file waveform-generator-helper.h.
Referenced by Install(), SetAntenna(), and WaveformGeneratorHelper().
|
protected |
Definition at line 141 of file waveform-generator-helper.h.
Referenced by Install(), and SetChannel().
|
protected |
Object factory for the NetDevice objects.
Definition at line 139 of file waveform-generator-helper.h.
Referenced by Install(), SetDeviceAttribute(), and WaveformGeneratorHelper().
|
protected |
Object factory for the phy objects.
Definition at line 138 of file waveform-generator-helper.h.
Referenced by Install(), SetPhyAttribute(), and WaveformGeneratorHelper().
|
protected |
Tx power spectral density.
Definition at line 142 of file waveform-generator-helper.h.
Referenced by Install(), and SetTxPowerSpectralDensity().