Create and configure several SpectrumPhy instances and connect them to a channel. More...
#include "spectrum-helper.h"
Public Member Functions | |
Ptr< SpectrumPhy > | Create (Ptr< Node > node, Ptr< NetDevice > device) const |
void | SetChannel (Ptr< SpectrumChannel > channel) |
set the channel that will be used by SpectrumPhy instances created by this helper | |
void | SetChannel (std::string channelName) |
set the channel that will be used by SpectrumPhy instances created by this helper | |
template<typename... Ts> | |
void | SetPhy (std::string name, Ts &&... args) |
void | SetPhyAttribute (std::string name, const AttributeValue &v) |
Private Attributes | |
Ptr< SpectrumChannel > | m_channel |
Channel. | |
ObjectFactory | m_phy |
Object factory for the phy objects. | |
Create and configure several SpectrumPhy instances and connect them to a channel.
Definition at line 117 of file spectrum-helper.h.
Ptr< SpectrumPhy > ns3::SpectrumPhyHelper::Create | ( | Ptr< Node > | node, |
Ptr< NetDevice > | device ) const |
node | |
device |
Definition at line 77 of file spectrum-helper.cc.
References ns3::ObjectFactory::Create(), m_channel, m_phy, and NS_ASSERT.
void ns3::SpectrumPhyHelper::SetChannel | ( | Ptr< SpectrumChannel > | channel | ) |
set the channel that will be used by SpectrumPhy instances created by this helper
channel |
Definition at line 58 of file spectrum-helper.cc.
References m_channel.
void ns3::SpectrumPhyHelper::SetChannel | ( | std::string | channelName | ) |
set the channel that will be used by SpectrumPhy instances created by this helper
channelName |
Definition at line 64 of file spectrum-helper.cc.
References ns3::Names::Find(), and m_channel.
void ns3::SpectrumPhyHelper::SetPhy | ( | std::string | name, |
Ts &&... | args ) |
Ts | [deduced] Argument types |
name | the type of SpectrumPhy to use | |
[in] | args | Name and AttributeValue pairs to set. |
Definition at line 203 of file spectrum-helper.h.
References m_phy, ns3::ObjectFactory::Set(), and ns3::ObjectFactory::SetTypeId().
void ns3::SpectrumPhyHelper::SetPhyAttribute | ( | std::string | name, |
const AttributeValue & | v ) |
name | the name of the attribute to set |
v | the value of the attribute |
Set an attribute of the SpectrumPhy instances to be created
Definition at line 71 of file spectrum-helper.cc.
References m_phy, and ns3::ObjectFactory::Set().
|
private |
Definition at line 161 of file spectrum-helper.h.
Referenced by Create(), SetChannel(), and SetChannel().
|
private |
Object factory for the phy objects.
Definition at line 160 of file spectrum-helper.h.
Referenced by Create(), SetPhy(), and SetPhyAttribute().