A Discrete-Event Network Simulator
API
ns3::AdhocAlohaNoackIdealPhyHelper Class Reference

create the AlohaNoackNetDevice More...

#include "adhoc-aloha-noack-ideal-phy-helper.h"

+ Collaboration diagram for ns3::AdhocAlohaNoackIdealPhyHelper:

Public Member Functions

 AdhocAlohaNoackIdealPhyHelper ()
 
 ~AdhocAlohaNoackIdealPhyHelper ()
 
NetDeviceContainer Install (NodeContainer c) const
 
NetDeviceContainer Install (Ptr< Node > node) const
 
NetDeviceContainer Install (std::string nodeName) const
 
template<typename... Ts>
void SetAntenna (std::string type, Ts &&... args)
 
void SetChannel (Ptr< SpectrumChannel > channel)
 set the SpectrumChannel that will be used by SpectrumPhy instances created by this helper More...
 
void SetChannel (std::string channelName)
 set the SpectrumChannel that will be used by SpectrumPhy instances created by this helper More...
 
void SetDeviceAttribute (std::string n1, const AttributeValue &v1)
 
void SetNoisePowerSpectralDensity (Ptr< SpectrumValue > noisePsd)
 
void SetPhyAttribute (std::string name, const AttributeValue &v)
 
void SetTxPowerSpectralDensity (Ptr< SpectrumValue > txPsd)
 

Protected Attributes

ObjectFactory m_antenna
 Object factory for the Antenna objects. More...
 
Ptr< SpectrumChannelm_channel
 Channel. More...
 
ObjectFactory m_device
 Object factory for the NetDevice objects. More...
 
Ptr< SpectrumValuem_noisePsd
 Noise power spectral density. More...
 
ObjectFactory m_phy
 Object factory for the phy objects. More...
 
ObjectFactory m_queue
 Object factory for the Queue objects. More...
 
Ptr< SpectrumValuem_txPsd
 Tx power spectral density. More...
 

Detailed Description

create the AlohaNoackNetDevice

Definition at line 41 of file adhoc-aloha-noack-ideal-phy-helper.h.

Constructor & Destructor Documentation

◆ AdhocAlohaNoackIdealPhyHelper()

ns3::AdhocAlohaNoackIdealPhyHelper::AdhocAlohaNoackIdealPhyHelper ( )

Definition at line 39 of file adhoc-aloha-noack-ideal-phy-helper.cc.

References m_antenna, m_device, m_phy, m_queue, and ns3::ObjectFactory::SetTypeId().

+ Here is the call graph for this function:

◆ ~AdhocAlohaNoackIdealPhyHelper()

ns3::AdhocAlohaNoackIdealPhyHelper::~AdhocAlohaNoackIdealPhyHelper ( )

Definition at line 47 of file adhoc-aloha-noack-ideal-phy-helper.cc.

Member Function Documentation

◆ Install() [1/3]

NetDeviceContainer ns3::AdhocAlohaNoackIdealPhyHelper::Install ( NodeContainer  c) const

◆ Install() [2/3]

NetDeviceContainer ns3::AdhocAlohaNoackIdealPhyHelper::Install ( Ptr< Node node) const
Parameters
nodethe node on which a device must be created
Returns
a device container which contains all the devices created by this method.

Definition at line 153 of file adhoc-aloha-noack-ideal-phy-helper.cc.

References Install().

+ Here is the call graph for this function:

◆ Install() [3/3]

NetDeviceContainer ns3::AdhocAlohaNoackIdealPhyHelper::Install ( std::string  nodeName) const
Parameters
nodeNamethe name of node on which a device must be created
Returns
a device container which contains all the devices created by this method.

Definition at line 159 of file adhoc-aloha-noack-ideal-phy-helper.cc.

References Install().

+ Here is the call graph for this function:

◆ SetAntenna()

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

Configure the AntennaModel instance for each new device to be created

Definition at line 133 of file adhoc-aloha-noack-ideal-phy-helper.h.

References check-style-clang-format::args, and m_antenna.

◆ SetChannel() [1/2]

void ns3::AdhocAlohaNoackIdealPhyHelper::SetChannel ( Ptr< SpectrumChannel channel)

set the SpectrumChannel that will be used by SpectrumPhy instances created by this helper

Parameters
channel

Definition at line 52 of file adhoc-aloha-noack-ideal-phy-helper.cc.

References third::channel, and m_channel.

Referenced by SpectrumIdealPhyTestCase::DoRun().

+ Here is the caller graph for this function:

◆ SetChannel() [2/2]

void ns3::AdhocAlohaNoackIdealPhyHelper::SetChannel ( std::string  channelName)

set the SpectrumChannel that will be used by SpectrumPhy instances created by this helper

Parameters
channelName

Definition at line 58 of file adhoc-aloha-noack-ideal-phy-helper.cc.

References third::channel, and m_channel.

◆ SetDeviceAttribute()

void ns3::AdhocAlohaNoackIdealPhyHelper::SetDeviceAttribute ( std::string  n1,
const AttributeValue v1 
)
Parameters
n1the name of the attribute to set
v1the value of the attribute to set

Set these attributes on each AlohaNoackNetDevice created

Definition at line 85 of file adhoc-aloha-noack-ideal-phy-helper.cc.

References m_device, and ns3::ObjectFactory::Set().

+ Here is the call graph for this function:

◆ SetNoisePowerSpectralDensity()

void ns3::AdhocAlohaNoackIdealPhyHelper::SetNoisePowerSpectralDensity ( Ptr< SpectrumValue noisePsd)
Parameters
noisePsdthe Power Spectral Density to be used for transmission by all created PHY instances

Definition at line 72 of file adhoc-aloha-noack-ideal-phy-helper.cc.

References m_noisePsd, and NS_LOG_FUNCTION.

Referenced by SpectrumIdealPhyTestCase::DoRun().

+ Here is the caller graph for this function:

◆ SetPhyAttribute()

void ns3::AdhocAlohaNoackIdealPhyHelper::SetPhyAttribute ( std::string  name,
const AttributeValue v 
)
Parameters
namethe name of the attribute to set
vthe value of the attribute

Set these attributes on each HdOfdmSpectrumPhy instance to be created

Definition at line 79 of file adhoc-aloha-noack-ideal-phy-helper.cc.

References m_phy, and ns3::ObjectFactory::Set().

Referenced by SpectrumIdealPhyTestCase::DoRun().

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

◆ SetTxPowerSpectralDensity()

void ns3::AdhocAlohaNoackIdealPhyHelper::SetTxPowerSpectralDensity ( Ptr< SpectrumValue txPsd)
Parameters
txPsdthe Power Spectral Density to be used for transmission by all created PHY instances

Definition at line 65 of file adhoc-aloha-noack-ideal-phy-helper.cc.

References m_txPsd, and NS_LOG_FUNCTION.

Referenced by SpectrumIdealPhyTestCase::DoRun().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_antenna

ObjectFactory ns3::AdhocAlohaNoackIdealPhyHelper::m_antenna
protected

Object factory for the Antenna objects.

Definition at line 121 of file adhoc-aloha-noack-ideal-phy-helper.h.

Referenced by AdhocAlohaNoackIdealPhyHelper(), Install(), and SetAntenna().

◆ m_channel

Ptr<SpectrumChannel> ns3::AdhocAlohaNoackIdealPhyHelper::m_channel
protected

Channel.

Definition at line 122 of file adhoc-aloha-noack-ideal-phy-helper.h.

Referenced by Install(), and SetChannel().

◆ m_device

ObjectFactory ns3::AdhocAlohaNoackIdealPhyHelper::m_device
protected

Object factory for the NetDevice objects.

Definition at line 119 of file adhoc-aloha-noack-ideal-phy-helper.h.

Referenced by AdhocAlohaNoackIdealPhyHelper(), Install(), and SetDeviceAttribute().

◆ m_noisePsd

Ptr<SpectrumValue> ns3::AdhocAlohaNoackIdealPhyHelper::m_noisePsd
protected

Noise power spectral density.

Definition at line 124 of file adhoc-aloha-noack-ideal-phy-helper.h.

Referenced by Install(), and SetNoisePowerSpectralDensity().

◆ m_phy

ObjectFactory ns3::AdhocAlohaNoackIdealPhyHelper::m_phy
protected

Object factory for the phy objects.

Definition at line 118 of file adhoc-aloha-noack-ideal-phy-helper.h.

Referenced by AdhocAlohaNoackIdealPhyHelper(), Install(), and SetPhyAttribute().

◆ m_queue

ObjectFactory ns3::AdhocAlohaNoackIdealPhyHelper::m_queue
protected

Object factory for the Queue objects.

Definition at line 120 of file adhoc-aloha-noack-ideal-phy-helper.h.

Referenced by AdhocAlohaNoackIdealPhyHelper(), and Install().

◆ m_txPsd

Ptr<SpectrumValue> ns3::AdhocAlohaNoackIdealPhyHelper::m_txPsd
protected

Tx power spectral density.

Definition at line 123 of file adhoc-aloha-noack-ideal-phy-helper.h.

Referenced by Install(), and SetTxPowerSpectralDensity().


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