A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ns3::YansWifiChannelHelper Class Reference

manage and create wifi channel objects for the YANS model. More...

#include "yans-wifi-helper.h"

+ Collaboration diagram for ns3::YansWifiChannelHelper:

Public Member Functions

 YansWifiChannelHelper ()
 Create a channel helper without any parameter set.
 
template<typename... Ts>
void AddPropagationLoss (std::string name, Ts &&... args)
 
int64_t AssignStreams (Ptr< YansWifiChannel > c, int64_t stream)
 Assign a fixed random variable stream number to the random variables used by the channel.
 
Ptr< YansWifiChannelCreate () const
 
template<typename... Ts>
void SetPropagationDelay (std::string name, Ts &&... args)
 

Static Public Member Functions

static YansWifiChannelHelper Default ()
 Create a channel helper in a default working state.
 

Private Attributes

ObjectFactory m_propagationDelay
 propagation delay model
 
std::vector< ObjectFactorym_propagationLoss
 vector of propagation loss models
 

Detailed Description

manage and create wifi channel objects for the YANS model.

The intent of this class is to make it easy to create a channel object which implements the YANS channel model. The YANS channel model is described in "Yet Another Network Simulator"; an author-prepared version of this paper * is at: https://hal.inria.fr/file/index/docid/78318/filename/yans-rr.pdf

Definition at line 27 of file yans-wifi-helper.h.

Constructor & Destructor Documentation

◆ YansWifiChannelHelper()

ns3::YansWifiChannelHelper::YansWifiChannelHelper ( )

Create a channel helper without any parameter set.

The user must set them all to be able to call Create later.

Definition at line 28 of file yans-wifi-helper.cc.

Member Function Documentation

◆ AddPropagationLoss()

template<typename... Ts>
void ns3::YansWifiChannelHelper::AddPropagationLoss ( std::string name,
Ts &&... args )
Template Parameters
Ts[deduced] Argument types
Parameters
namethe name of the model to add
[in]argsName and AttributeValue pairs to set.

Add a propagation loss model to the set of currently-configured loss models. This method is additive to allow you to construct complex propagation loss models such as a log distance + Jakes model, etc.

The order in which PropagationLossModels are added may be significant. Some propagation models are dependent of the "txPower" (e.g. Nakagami model), and are therefore not commutative. The final receive power (excluding receiver gains) are calculated in the order the models are added.

Definition at line 148 of file yans-wifi-helper.h.

References m_propagationLoss.

Referenced by DsdvManetExample::CreateDevices(), Default(), and RoutingExperiment::Run().

+ Here is the caller graph for this function:

◆ AssignStreams()

int64_t ns3::YansWifiChannelHelper::AssignStreams ( Ptr< YansWifiChannel > c,
int64_t stream )

Assign a fixed random variable stream number to the random variables used by the channel.

Typically this corresponds to random variables used in the propagation loss models. Return the number of streams (possibly zero) that have been assigned.

Parameters
cNetDeviceContainer of the set of net devices for which the WifiNetDevice should be modified to use fixed streams
streamfirst stream index to use
Returns
the number of stream indices assigned by this helper

Definition at line 65 of file yans-wifi-helper.cc.

Referenced by Bug772ChainTest::CreateDevices(), ChainRegressionTest::CreateDevices(), FlameRegressionTest::CreateDevices(), HwmpDoRfRegressionTest::CreateDevices(), HwmpProactiveRegressionTest::CreateDevices(), HwmpReactiveRegressionTest::CreateDevices(), HwmpSimplestRegressionTest::CreateDevices(), and PeerManagementProtocolRegressionTest::CreateDevices().

+ Here is the caller graph for this function:

◆ Create()

◆ Default()

YansWifiChannelHelper ns3::YansWifiChannelHelper::Default ( )
static

Create a channel helper in a default working state.

By default, we create a channel model with a propagation delay equal to a constant, the speed of light, and a propagation loss based on a log distance model with a reference loss of 46.6777 dB at reference distance of 1m.

Returns
YansWifiChannelHelper

Definition at line 33 of file yans-wifi-helper.cc.

References AddPropagationLoss(), and SetPropagationDelay().

Referenced by AodvExample::CreateDevices(), Bug772ChainTest::CreateDevices(), ChainRegressionTest::CreateDevices(), FlameRegressionTest::CreateDevices(), HwmpDoRfRegressionTest::CreateDevices(), HwmpProactiveRegressionTest::CreateDevices(), HwmpReactiveRegressionTest::CreateDevices(), HwmpSimplestRegressionTest::CreateDevices(), PeerManagementProtocolRegressionTest::CreateDevices(), TracerouteExample::CreateDevices(), MeshTest::CreateNodes(), BlockAckAggregationDisabledTest::DoRun(), Bug2222TestCase::DoRun(), Bug730TestCase::DoRun(), DsssModulationTest::DoRun(), IdealRateManagerChannelWidthTest::DoRun(), IdealRateManagerMimoTest::DoRun(), Issue169TestCase::DoRun(), ns3::aodv::LoopbackTestCase::DoRun(), PreservePacketsInAmpdus::DoRun(), QosFragmentationTestCase::DoRun(), SetChannelFrequencyTest::DoRun(), WifiAcMappingTest::DoRun(), WifiMsduAggregatorThroughputTest::DoRun(), WifiFilsFrameTest::DoSetup(), Experiment::Run(), Issue40TestCase::RunOne(), Bug2470TestCase::RunSubtest(), and StaWifiMacScanningTestCase::Setup().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetPropagationDelay()

template<typename... Ts>
void ns3::YansWifiChannelHelper::SetPropagationDelay ( std::string name,
Ts &&... args )
Template Parameters
Ts[deduced] Argument types
Parameters
namethe name of the model to set
[in]argsName and AttributeValue pairs to set.

Configure a propagation delay for this channel.

Definition at line 155 of file yans-wifi-helper.h.

References m_propagationDelay.

Referenced by BatteryLifetimeTest::ConstantLoadTest(), DsdvManetExample::CreateDevices(), Default(), BasicEnergyDepletionTest::DepletionTestCase(), RoutingExperiment::Run(), and BatteryLifetimeTest::VariableLoadTest().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_propagationDelay

ObjectFactory ns3::YansWifiChannelHelper::m_propagationDelay
private

propagation delay model

Definition at line 94 of file yans-wifi-helper.h.

Referenced by Create(), and SetPropagationDelay().

◆ m_propagationLoss

std::vector<ObjectFactory> ns3::YansWifiChannelHelper::m_propagationLoss
private

vector of propagation loss models

Definition at line 93 of file yans-wifi-helper.h.

Referenced by AddPropagationLoss(), and Create().


The documentation for this class was generated from the following files: