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... | |
| 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.  More... | |
| ObjectFactory | m_phy | 
| Object factory for the phy objects.  More... | |
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(), ns3::Object::GetObject(), m_channel, m_phy, NS_ASSERT, and third::phy.
 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 69 of file spectrum-helper.cc.
References third::channel, and 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 third::channel, 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 214 of file spectrum-helper.h.
References check-style-clang-format::args, 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 82 of file spectrum-helper.cc.
References m_phy, and ns3::ObjectFactory::Set().
 Here is the call graph for this function:
      
  | 
  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().