create the AlohaNoackNetDevice More...
#include <adhoc-aloha-noack-ideal-phy-helper.h>
Protected Attributes | |
| ObjectFactory | m_antenna |
| Ptr< SpectrumChannel > | m_channel |
| ObjectFactory | m_device |
| Ptr< SpectrumValue > | m_noisePsd |
| ObjectFactory | m_phy |
| ObjectFactory | m_queue |
| Ptr< SpectrumValue > | m_txPsd |
create the AlohaNoackNetDevice
Definition at line 42 of file adhoc-aloha-noack-ideal-phy-helper.h.
| NetDeviceContainer ns3::AdhocAlohaNoackIdealPhyHelper::Install | ( | NodeContainer | c | ) | const |
| c | the set of nodes on which a device must be created |
Definition at line 119 of file adhoc-aloha-noack-ideal-phy-helper.cc.
References ns3::NetDeviceContainer::Add(), ns3::Node::AddDevice(), ns3::Mac48Address::Allocate(), ns3::NodeContainer::Begin(), ns3::ObjectFactory::Create(), ns3::NodeContainer::End(), ns3::Object::GetObject(), ns3::MakeCallback(), ns3::AlohaNoackNetDevice::NotifyReceptionEndOk(), ns3::AlohaNoackNetDevice::NotifyReceptionStart(), ns3::AlohaNoackNetDevice::NotifyTransmissionEnd(), NS_ASSERT, NS_ASSERT_MSG, and ns3::HalfDuplexIdealPhy::StartTx().
Referenced by ns3::SpectrumIdealPhyTestCase::DoRun(), and Install().
| NetDeviceContainer ns3::AdhocAlohaNoackIdealPhyHelper::Install | ( | Ptr< Node > | node | ) | const |
| node | the node on which a device must be created |
Definition at line 174 of file adhoc-aloha-noack-ideal-phy-helper.cc.
References Install().
| NetDeviceContainer ns3::AdhocAlohaNoackIdealPhyHelper::Install | ( | std::string | nodeName | ) | const |
| nodeName | the name of node on which a device must be created |
Definition at line 180 of file adhoc-aloha-noack-ideal-phy-helper.cc.
References Install().
| 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 () |
||
| ) |
| type | the type of the model to set |
| n0 | the name of the attribute to set |
| v0 | the value of the attribute to set |
| n1 | the name of the attribute to set |
| v1 | the value of the attribute to set |
| n2 | the name of the attribute to set |
| v2 | the value of the attribute to set |
| n3 | the name of the attribute to set |
| v3 | the value of the attribute to set |
| n4 | the name of the attribute to set |
| v4 | the value of the attribute to set |
| n5 | the name of the attribute to set |
| v5 | the value of the attribute to set |
| n6 | the name of the attribute to set |
| v6 | the value of the attribute to set |
| n7 | the name of the attribute to set |
| v7 | the 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 ns3::ObjectFactory::Set(), and ns3::ObjectFactory::SetTypeId().
| 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 55 of file adhoc-aloha-noack-ideal-phy-helper.cc.
Referenced by ns3::SpectrumIdealPhyTestCase::DoRun().
| 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 61 of file adhoc-aloha-noack-ideal-phy-helper.cc.
| 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 89 of file adhoc-aloha-noack-ideal-phy-helper.cc.
References ns3::ObjectFactory::Set().
| 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 75 of file adhoc-aloha-noack-ideal-phy-helper.cc.
References NS_LOG_FUNCTION.
Referenced by ns3::SpectrumIdealPhyTestCase::DoRun().
| 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 82 of file adhoc-aloha-noack-ideal-phy-helper.cc.
References ns3::ObjectFactory::Set().
Referenced by ns3::SpectrumIdealPhyTestCase::DoRun().
| 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 68 of file adhoc-aloha-noack-ideal-phy-helper.cc.
References NS_LOG_FUNCTION.
Referenced by ns3::SpectrumIdealPhyTestCase::DoRun().