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 128 of file spectrum-helper.h.
Ptr< SpectrumPhy > ns3::SpectrumPhyHelper::Create | ( | Ptr< Node > | node, |
Ptr< NetDevice > | device | ||
) | const |
node | |
device |
Definition at line 88 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 69 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 75 of file spectrum-helper.cc.
References 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 214 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 82 of file spectrum-helper.cc.
References m_phy, and ns3::ObjectFactory::Set().
|
private |
Definition at line 172 of file spectrum-helper.h.
Referenced by Create(), and SetChannel().
|
private |
Object factory for the phy objects.
Definition at line 171 of file spectrum-helper.h.
Referenced by Create(), SetPhy(), and SetPhyAttribute().