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 | |
| void | SetChannel (std::string channelName) |
| set the SpectrumChannel that will be used by SpectrumPhy instances created by this helper | |
| 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. | |
| Ptr< SpectrumChannel > | m_channel |
| Channel. | |
| ObjectFactory | m_device |
| Object factory for the NetDevice objects. | |
| Ptr< SpectrumValue > | m_noisePsd |
| Noise power spectral density. | |
| ObjectFactory | m_phy |
| Object factory for the phy objects. | |
| ObjectFactory | m_queue |
| Object factory for the Queue objects. | |
| Ptr< SpectrumValue > | m_txPsd |
| Tx power spectral density. | |
create the AlohaNoackNetDevice
Definition at line 30 of file adhoc-aloha-noack-ideal-phy-helper.h.
| ns3::AdhocAlohaNoackIdealPhyHelper::AdhocAlohaNoackIdealPhyHelper | ( | ) |
| ns3::AdhocAlohaNoackIdealPhyHelper::~AdhocAlohaNoackIdealPhyHelper | ( | ) |
Definition at line 36 of file adhoc-aloha-noack-ideal-phy-helper.cc.
| NetDeviceContainer ns3::AdhocAlohaNoackIdealPhyHelper::Install | ( | NodeContainer | c | ) | const |
| c | the set of nodes on which a device must be created |
Definition at line 80 of file adhoc-aloha-noack-ideal-phy-helper.cc.
References ns3::Mac48Address::Allocate(), ns3::NodeContainer::Begin(), ns3::NodeContainer::End(), m_antenna, m_channel, m_device, m_noisePsd, m_phy, m_queue, m_txPsd, ns3::MakeCallback(), ns3::AlohaNoackNetDevice::NotifyReceptionEndOk(), ns3::AlohaNoackNetDevice::NotifyReceptionStart(), ns3::AlohaNoackNetDevice::NotifyTransmissionEnd(), NS_ASSERT, NS_ASSERT_MSG, and ns3::HalfDuplexIdealPhy::StartTx().
Referenced by SpectrumIdealPhyTestCase::DoRun(), Install(), and Install().
Here is the call graph for this function:
Here is the caller graph for this function:| NetDeviceContainer ns3::AdhocAlohaNoackIdealPhyHelper::Install | ( | Ptr< Node > | node | ) | const |
| node | the node on which a device must be created |
Definition at line 142 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 |
| nodeName | the name of node on which a device must be created |
Definition at line 148 of file adhoc-aloha-noack-ideal-phy-helper.cc.
References ns3::Names::Find(), and Install().
Here is the call graph for this function:| void ns3::AdhocAlohaNoackIdealPhyHelper::SetAntenna | ( | std::string | type, |
| Ts &&... | args ) |
| Ts | [deduced] Argument types |
| type | the type of the model to set | |
| [in] | args | Name and AttributeValue pairs to set. |
Configure the AntennaModel instance for each new device to be created
Definition at line 122 of file adhoc-aloha-noack-ideal-phy-helper.h.
References m_antenna.
| void ns3::AdhocAlohaNoackIdealPhyHelper::SetChannel | ( | Ptr< SpectrumChannel > | channel | ) |
set the SpectrumChannel that will be used by SpectrumPhy instances created by this helper
| channel |
Definition at line 41 of file adhoc-aloha-noack-ideal-phy-helper.cc.
References m_channel.
Referenced by SpectrumIdealPhyTestCase::DoRun().
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
| channelName |
Definition at line 47 of file adhoc-aloha-noack-ideal-phy-helper.cc.
References ns3::Names::Find(), and m_channel.
Here is the call graph for this function:| void ns3::AdhocAlohaNoackIdealPhyHelper::SetDeviceAttribute | ( | std::string | n1, |
| const AttributeValue & | v1 ) |
| n1 | the name of the attribute to set |
| v1 | the value of the attribute to set |
Set these attributes on each AlohaNoackNetDevice created
Definition at line 74 of file adhoc-aloha-noack-ideal-phy-helper.cc.
References m_device.
| void ns3::AdhocAlohaNoackIdealPhyHelper::SetNoisePowerSpectralDensity | ( | Ptr< SpectrumValue > | noisePsd | ) |
| noisePsd | the Power Spectral Density to be used for transmission by all created PHY instances |
Definition at line 61 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:| void ns3::AdhocAlohaNoackIdealPhyHelper::SetPhyAttribute | ( | std::string | name, |
| const AttributeValue & | v ) |
| name | the name of the attribute to set |
| v | the value of the attribute |
Set these attributes on each HdOfdmSpectrumPhy instance to be created
Definition at line 68 of file adhoc-aloha-noack-ideal-phy-helper.cc.
References m_phy.
Referenced by SpectrumIdealPhyTestCase::DoRun().
Here is the caller graph for this function:| void ns3::AdhocAlohaNoackIdealPhyHelper::SetTxPowerSpectralDensity | ( | Ptr< SpectrumValue > | txPsd | ) |
| txPsd | the Power Spectral Density to be used for transmission by all created PHY instances |
Definition at line 54 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:
|
protected |
Object factory for the Antenna objects.
Definition at line 110 of file adhoc-aloha-noack-ideal-phy-helper.h.
Referenced by AdhocAlohaNoackIdealPhyHelper(), Install(), and SetAntenna().
|
protected |
Definition at line 111 of file adhoc-aloha-noack-ideal-phy-helper.h.
Referenced by Install(), SetChannel(), and SetChannel().
|
protected |
Object factory for the NetDevice objects.
Definition at line 108 of file adhoc-aloha-noack-ideal-phy-helper.h.
Referenced by AdhocAlohaNoackIdealPhyHelper(), Install(), and SetDeviceAttribute().
|
protected |
Noise power spectral density.
Definition at line 113 of file adhoc-aloha-noack-ideal-phy-helper.h.
Referenced by Install(), and SetNoisePowerSpectralDensity().
|
protected |
Object factory for the phy objects.
Definition at line 107 of file adhoc-aloha-noack-ideal-phy-helper.h.
Referenced by AdhocAlohaNoackIdealPhyHelper(), Install(), and SetPhyAttribute().
|
protected |
Object factory for the Queue objects.
Definition at line 109 of file adhoc-aloha-noack-ideal-phy-helper.h.
Referenced by AdhocAlohaNoackIdealPhyHelper(), and Install().
|
protected |
Tx power spectral density.
Definition at line 112 of file adhoc-aloha-noack-ideal-phy-helper.h.
Referenced by Install(), and SetTxPowerSpectralDensity().