A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
 
void SetAntenna (std::string type, std::string n0="", const AttributeValue &v0=EmptyAttributeValue(), std::string n1="", const AttributeValue &v1=EmptyAttributeValue(), std::string n2="", const AttributeValue &v2=EmptyAttributeValue(), std::string n3="", const AttributeValue &v3=EmptyAttributeValue(), std::string n4="", const AttributeValue &v4=EmptyAttributeValue(), std::string n5="", const AttributeValue &v5=EmptyAttributeValue(), std::string n6="", const AttributeValue &v6=EmptyAttributeValue(), std::string n7="", const AttributeValue &v7=EmptyAttributeValue())
 
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
 
Ptr< SpectrumChannelm_channel
 
ObjectFactory m_device
 
Ptr< SpectrumValuem_noisePsd
 
ObjectFactory m_phy
 
ObjectFactory m_queue
 
Ptr< SpectrumValuem_txPsd
 

Detailed Description

create the AlohaNoackNetDevice

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

Constructor & Destructor Documentation

ns3::AdhocAlohaNoackIdealPhyHelper::AdhocAlohaNoackIdealPhyHelper ( )

Definition at line 42 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:

ns3::AdhocAlohaNoackIdealPhyHelper::~AdhocAlohaNoackIdealPhyHelper ( )

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

Member Function Documentation

NetDeviceContainer ns3::AdhocAlohaNoackIdealPhyHelper::Install ( NodeContainer  c) const
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 174 of file adhoc-aloha-noack-ideal-phy-helper.cc.

References Install().

+ Here is the call graph for this function:

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 180 of file adhoc-aloha-noack-ideal-phy-helper.cc.

References Install().

+ Here is the call graph for this function:

void ns3::AdhocAlohaNoackIdealPhyHelper::SetAntenna ( std::string  type,
std::string  n0 = "",
const AttributeValue v0 = EmptyAttributeValue (),
std::string  n1 = "",
const AttributeValue v1 = EmptyAttributeValue (),
std::string  n2 = "",
const AttributeValue v2 = EmptyAttributeValue (),
std::string  n3 = "",
const AttributeValue v3 = EmptyAttributeValue (),
std::string  n4 = "",
const AttributeValue v4 = EmptyAttributeValue (),
std::string  n5 = "",
const AttributeValue v5 = EmptyAttributeValue (),
std::string  n6 = "",
const AttributeValue v6 = EmptyAttributeValue (),
std::string  n7 = "",
const AttributeValue v7 = EmptyAttributeValue () 
)
Parameters
typethe type of the model to set
n0the name of the attribute to set
v0the value of the attribute to set
n1the name of the attribute to set
v1the value of the attribute to set
n2the name of the attribute to set
v2the value of the attribute to set
n3the name of the attribute to set
v3the value of the attribute to set
n4the name of the attribute to set
v4the value of the attribute to set
n5the name of the attribute to set
v5the value of the attribute to set
n6the name of the attribute to set
v6the value of the attribute to set
n7the name of the attribute to set
v7the value of the attribute to set

Configure the AntennaModel instance for each new device to be created

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

References m_antenna, ns3::ObjectFactory::Set(), and ns3::ObjectFactory::SetTypeId().

+ Here is the call graph for this function:

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 55 of file adhoc-aloha-noack-ideal-phy-helper.cc.

References m_channel.

Referenced by SpectrumIdealPhyTestCase::DoRun(), and main().

+ Here is the caller graph for this function:

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 61 of file adhoc-aloha-noack-ideal-phy-helper.cc.

References m_channel.

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 89 of file adhoc-aloha-noack-ideal-phy-helper.cc.

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

+ Here is the call graph for this function:

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 75 of file adhoc-aloha-noack-ideal-phy-helper.cc.

References m_noisePsd, and NS_LOG_FUNCTION.

Referenced by SpectrumIdealPhyTestCase::DoRun(), and main().

+ Here is the caller graph for this function:

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 82 of file adhoc-aloha-noack-ideal-phy-helper.cc.

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

Referenced by SpectrumIdealPhyTestCase::DoRun(), and main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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 68 of file adhoc-aloha-noack-ideal-phy-helper.cc.

References m_txPsd, and NS_LOG_FUNCTION.

Referenced by SpectrumIdealPhyTestCase::DoRun(), and main().

+ Here is the caller graph for this function:

Member Data Documentation

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

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

Referenced by Install(), and SetChannel().

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

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

Referenced by Install(), and SetNoisePowerSpectralDensity().

ObjectFactory ns3::AdhocAlohaNoackIdealPhyHelper::m_phy
protected
ObjectFactory ns3::AdhocAlohaNoackIdealPhyHelper::m_queue
protected

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

Referenced by AdhocAlohaNoackIdealPhyHelper(), and Install().

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

Definition at line 146 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: