create non QoS-enabled MAC layers for a ns3::WifiNetDevice. More...
#include <nqos-wifi-mac-helper.h>
Public Member Functions | |
NqosWifiMacHelper () | |
virtual | ~NqosWifiMacHelper () |
void | SetType (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()) |
![]() | |
virtual | ~WifiMacHelper () |
virtual Ptr< WifiMac > | Create (void) const =0 |
Static Public Member Functions | |
static NqosWifiMacHelper | Default (void) |
Private Member Functions | |
virtual Ptr< WifiMac > | Create (void) const |
Private Attributes | |
ObjectFactory | m_mac |
create non QoS-enabled MAC layers for a ns3::WifiNetDevice.
This class can create MACs of type ns3::ApWifiMac, ns3::StaWifiMac, and, ns3::AdhocWifiMac, with QosSupported attribute set to False.
Definition at line 33 of file nqos-wifi-mac-helper.h.
ns3::NqosWifiMacHelper::NqosWifiMacHelper | ( | ) |
Create a NqosWifiMacHelper to make life easier for people who want to work with non-QOS Wifi MAC layers.
Definition at line 28 of file nqos-wifi-mac-helper.cc.
|
virtual |
Destroy a NqosWifiMacHelper.
Definition at line 32 of file nqos-wifi-mac-helper.cc.
This method implements the pure virtual method defined in ns3::WifiMacHelper.
Definition at line 72 of file nqos-wifi-mac-helper.cc.
References ns3::ObjectFactory::Create(), and m_mac.
|
static |
Create a mac helper in a default working state. i.e., this is an adhoc mac by default.
Definition at line 37 of file nqos-wifi-mac-helper.cc.
References SetType().
Referenced by ns3::aodv::Bug772ChainTest::CreateDevices(), ns3::aodv::ChainRegressionTest::CreateDevices(), ns3::olsr::Bug780Test::CreateNodes(), ns3::olsr::TcRegressionTest::CreateNodes(), ns3::aodv::LoopbackTestCase::DoRun(), and main().
void ns3::NqosWifiMacHelper::SetType | ( | 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 ns3::WifiMac to create. |
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 |
All the attributes specified in this method should exist in the requested mac.
Definition at line 50 of file nqos-wifi-mac-helper.cc.
References m_mac, ns3::ObjectFactory::Set(), and ns3::ObjectFactory::SetTypeId().
Referenced by BatteryLifetimeTest::ConstantLoadTest(), ns3::aodv::Bug772ChainTest::CreateDevices(), AodvExample::CreateDevices(), DsdvManetExample::CreateDevices(), ns3::aodv::ChainRegressionTest::CreateDevices(), ns3::olsr::Bug780Test::CreateNodes(), ns3::olsr::TcRegressionTest::CreateNodes(), Default(), BasicEnergyDepletionTest::DepletionTestCase(), ns3::aodv::LoopbackTestCase::DoRun(), main(), BatteryLifetimeTest::VariableLoadTest(), and WifiInterferenceTestCase::WifiSimpleInterference().
|
private |
Definition at line 93 of file nqos-wifi-mac-helper.h.