Setup a SpectrumChannel. More...
#include "spectrum-helper.h"
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 44 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 44 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 189 of file spectrum-helper.h.
References AddPropagationLoss(), and ns3::ObjectFactory::Create().
Referenced by AddPropagationLoss(), and SpectrumIdealPhyTestCase::DoRun().
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 51 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 198 of file spectrum-helper.h.
References AddSpectrumPropagationLoss(), and ns3::ObjectFactory::Create().
Referenced by AddSpectrumPropagationLoss(), and Default().
Ptr< SpectrumChannel > ns3::SpectrumChannelHelper::Create | ( | ) | const |
Create a channel based on the configuration parameters set previously.
Definition at line 58 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().
|
static |
Setup a default SpectrumChannel.
The Default mode is: Channel: "ns3::SingleModelSpectrumChannel", PropagationDelay: "ns3::ConstantSpeedPropagationDelayModel", and SpectrumPropagationLoss: "ns3::FriisSpectrumPropagationLossModel".
Definition at line 34 of file spectrum-helper.cc.
References AddSpectrumPropagationLoss(), SetChannel(), and SetPropagationDelay().
Referenced by WaveformGeneratorTestCase::DoRun().
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 181 of file spectrum-helper.h.
References m_channel, ns3::ObjectFactory::Set(), and ns3::ObjectFactory::SetTypeId().
Referenced by Default(), SpectrumIdealPhyTestCase::DoRun(), and WaveformGeneratorTestCase::DoRun().
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 207 of file spectrum-helper.h.
References m_propagationDelay.
Referenced by Default(), and SpectrumIdealPhyTestCase::DoRun().
|
private |
Definition at line 120 of file spectrum-helper.h.
Referenced by Create(), and SetChannel().
|
private |
Propagation delay.
Definition at line 119 of file spectrum-helper.h.
Referenced by Create(), and SetPropagationDelay().
|
private |
Propagation loss model.
Definition at line 118 of file spectrum-helper.h.
Referenced by AddPropagationLoss(), and Create().
|
private |
Spectrum propagation loss model.
Definition at line 117 of file spectrum-helper.h.
Referenced by AddSpectrumPropagationLoss(), and Create().