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. More... | |
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. More... | |
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. More... | |
Private Attributes | |
ObjectFactory | m_channel |
Channel. More... | |
ObjectFactory | m_propagationDelay |
Propagation delay. More... | |
Ptr< PropagationLossModel > | m_propagationLossModel |
Propagation loss model. More... | |
Ptr< SpectrumPropagationLossModel > | m_spectrumPropagationLossModel |
Spectrum propagation loss model. More... | |
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 two-ray-to-three-gpp-ch-calibration::m, and 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 check-style-clang-format::args, ns3::ObjectFactory::Create(), and two-ray-to-three-gpp-ch-calibration::m.
Referenced by 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 two-ray-to-three-gpp-ch-calibration::m, and 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 check-style-clang-format::args, ns3::ObjectFactory::Create(), and two-ray-to-three-gpp-ch-calibration::m.
Referenced by 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 third::channel, 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().
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 check-style-clang-format::args, m_channel, ns3::ObjectFactory::Set(), ns3::ObjectFactory::SetTypeId(), and check-style-clang-format::type.
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 check-style-clang-format::args, and 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().