create and configure several SpectrumPhy instances and connect them to a channel. More...
#include <spectrum-helper.h>
Collaboration diagram for ns3::SpectrumPhyHelper: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 More... | |
| void | SetChannel (std::string channelName) |
| set the channel that will be used by SpectrumPhy instances created by this helper More... | |
| void | SetPhy (std::string name, 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 | SetPhyAttribute (std::string name, const AttributeValue &v) |
Private Attributes | |
| Ptr< SpectrumChannel > | m_channel |
| ObjectFactory | m_phy |
create and configure several SpectrumPhy instances and connect them to a channel.
Definition at line 206 of file spectrum-helper.h.
| Ptr< SpectrumPhy > ns3::SpectrumPhyHelper::Create | ( | Ptr< Node > | node, |
| Ptr< NetDevice > | device | ||
| ) | const |
| node | |
| device |
Definition at line 213 of file spectrum-helper.cc.
References ns3::ObjectFactory::Create(), ns3::Object::GetObject(), m_channel, m_phy, NS_ASSERT, ns3::SpectrumPhy::SetChannel(), ns3::SpectrumPhy::SetDevice(), and ns3::SpectrumPhy::SetMobility().
Here is the call graph for this function:| 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 193 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 199 of file spectrum-helper.cc.
References m_channel.
| void ns3::SpectrumPhyHelper::SetPhy | ( | std::string | name, |
| 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 () |
||
| ) |
| name | the type of SpectrumPhy to use |
| 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 |
Definition at line 169 of file spectrum-helper.cc.
References m_phy, ns3::ObjectFactory::Set(), and ns3::ObjectFactory::SetTypeId().
Here is the call graph for this function:| 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 206 of file spectrum-helper.cc.
References m_phy, and ns3::ObjectFactory::Set().
Here is the call graph for this function:
|
private |
Definition at line 273 of file spectrum-helper.h.
Referenced by Create(), and SetChannel().
|
private |
Definition at line 272 of file spectrum-helper.h.
Referenced by Create(), SetPhy(), and SetPhyAttribute().