Setup a SpectrumChannel. More...
#include "spectrum-helper.h"
 Collaboration diagram for ns3::SpectrumChannelHelper:
 Collaboration diagram for ns3::SpectrumChannelHelper:| Public Member Functions | |
| void | AddPropagationLoss (Ptr< PropagationLossModel > m) | 
| Add a new single-frequency propagation loss model instance to this channel helper. | |
| template<typename... Ts> | |
| void | AddPropagationLoss (std::string name, Ts &&... args) | 
| void | AddSpectrumPropagationLoss (Ptr< SpectrumPropagationLossModel > m) | 
| Add a new frequency-dependent propagation loss model instance to this channel helper. | |
| template<typename... Ts> | |
| void | AddSpectrumPropagationLoss (std::string name, Ts &&... args) | 
| Ptr< SpectrumChannel > | Create () const | 
| template<typename... Ts> | |
| void | SetChannel (std::string type, Ts &&... args) | 
| template<typename... Ts> | |
| void | SetPropagationDelay (std::string name, Ts &&... args) | 
| Static Public Member Functions | |
| static SpectrumChannelHelper | Default () | 
| Setup a default SpectrumChannel. | |
| Private Attributes | |
| ObjectFactory | m_channel | 
| Channel. | |
| ObjectFactory | m_propagationDelay | 
| Propagation delay. | |
| Ptr< PropagationLossModel > | m_propagationLossModel | 
| Propagation loss model. | |
| Ptr< SpectrumPropagationLossModel > | m_spectrumPropagationLossModel | 
| Spectrum propagation loss model. | |
Setup a SpectrumChannel.
Definition at line 33 of file spectrum-helper.h.
| void ns3::SpectrumChannelHelper::AddPropagationLoss | ( | Ptr< PropagationLossModel > | m | ) | 
Add a new single-frequency propagation loss model instance to this channel helper.
| m | a pointer to the instance of the propagation loss model | 
Definition at line 33 of file spectrum-helper.cc.
References m_propagationLossModel.
| void ns3::SpectrumChannelHelper::AddPropagationLoss | ( | std::string | name, | 
| Ts &&... | args ) | 
| Ts | [deduced] Argument types | 
| name | the name of the model to set | |
| [in] | args | Name and AttributeValue pairs to set. | 
Add a new single-frequency propagation loss model to this channel helper.
Definition at line 178 of file spectrum-helper.h.
References AddPropagationLoss(), and ns3::ObjectFactory::Create().
Referenced by AddPropagationLoss(), and SpectrumIdealPhyTestCase::DoRun().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| void ns3::SpectrumChannelHelper::AddSpectrumPropagationLoss | ( | Ptr< SpectrumPropagationLossModel > | m | ) | 
Add a new frequency-dependent propagation loss model instance to this channel helper.
| m | a pointer to the instance of the propagation loss model | 
Definition at line 40 of file spectrum-helper.cc.
References m_spectrumPropagationLossModel.
| void ns3::SpectrumChannelHelper::AddSpectrumPropagationLoss | ( | std::string | name, | 
| Ts &&... | args ) | 
| Ts | [deduced] Argument types | 
| name | the name of the model to set | |
| [in] | args | Name and AttributeValue pairs to set. | 
Add a new frequency-dependent propagation loss model to this channel helper.
Definition at line 187 of file spectrum-helper.h.
References AddSpectrumPropagationLoss(), and ns3::ObjectFactory::Create().
Referenced by AddSpectrumPropagationLoss(), and Default().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| Ptr< SpectrumChannel > ns3::SpectrumChannelHelper::Create | ( | ) | const | 
Create a channel based on the configuration parameters set previously.
Definition at line 47 of file spectrum-helper.cc.
References ns3::ObjectFactory::Create(), m_channel, m_propagationDelay, m_propagationLossModel, and m_spectrumPropagationLossModel.
Referenced by SpectrumIdealPhyTestCase::DoRun(), and WaveformGeneratorTestCase::DoRun().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Setup a default SpectrumChannel.
The Default mode is: Channel: "ns3::SingleModelSpectrumChannel", PropagationDelay: "ns3::ConstantSpeedPropagationDelayModel", and SpectrumPropagationLoss: "ns3::FriisSpectrumPropagationLossModel".
Definition at line 23 of file spectrum-helper.cc.
References AddSpectrumPropagationLoss(), SetChannel(), and SetPropagationDelay().
Referenced by WaveformGeneratorTestCase::DoRun().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| void ns3::SpectrumChannelHelper::SetChannel | ( | std::string | type, | 
| Ts &&... | args ) | 
| Ts | [deduced] Argument types | 
| type | the type of the SpectrumChannel to use | |
| [in] | args | Name and AttributeValue pairs to set. | 
Definition at line 170 of file spectrum-helper.h.
References m_channel, ns3::ObjectFactory::Set(), and ns3::ObjectFactory::SetTypeId().
Referenced by Default(), SpectrumIdealPhyTestCase::DoRun(), and WaveformGeneratorTestCase::DoRun().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| void ns3::SpectrumChannelHelper::SetPropagationDelay | ( | std::string | name, | 
| Ts &&... | args ) | 
| Ts | [deduced] Argument types | 
| name | the name of the model to set | |
| [in] | args | Name and AttributeValue pairs to set. | 
Configure a propagation delay for this channel.
Definition at line 196 of file spectrum-helper.h.
References m_propagationDelay.
Referenced by Default(), and SpectrumIdealPhyTestCase::DoRun().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Definition at line 109 of file spectrum-helper.h.
Referenced by Create(), and SetChannel().
| 
 | private | 
Propagation delay.
Definition at line 108 of file spectrum-helper.h.
Referenced by Create(), and SetPropagationDelay().
| 
 | private | 
Propagation loss model.
Definition at line 107 of file spectrum-helper.h.
Referenced by AddPropagationLoss(), and Create().
| 
 | private | 
Spectrum propagation loss model.
Definition at line 106 of file spectrum-helper.h.
Referenced by AddSpectrumPropagationLoss(), and Create().