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

create non QoS-enabled MAC layers for a ns3::WifiNetDevice. More...

#include "nqos-wifi-mac-helper.h"

+ Inheritance diagram for ns3::NqosWifiMacHelper:
+ Collaboration diagram for ns3::NqosWifiMacHelper:

Public Member Functions

 NqosWifiMacHelper ()
 Create a NqosWifiMacHelper to make life easier for people who want to work with non-QOS Wifi MAC layers. More...
 
virtual ~NqosWifiMacHelper ()
 Destroy a NqosWifiMacHelper. More...
 
virtual 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(), std::string n8="", const AttributeValue &v8=EmptyAttributeValue(), std::string n9="", const AttributeValue &v9=EmptyAttributeValue(), std::string n10="", const AttributeValue &v10=EmptyAttributeValue())
 
- Public Member Functions inherited from ns3::WifiMacHelper
 WifiMacHelper ()
 Create a WifiMacHelper to make life easier for people who want to work with Wifi MAC layers. More...
 
virtual ~WifiMacHelper ()
 Destroy a WifiMacHelper. More...
 

Static Public Member Functions

static NqosWifiMacHelper Default (void)
 Create a mac helper in a default working state. More...
 

Protected Attributes

ObjectFactory m_mac
 
- Protected Attributes inherited from ns3::WifiMacHelper
ObjectFactory m_mac
 

Private Member Functions

virtual Ptr< WifiMacCreate (void) const
 

Detailed Description

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 38 of file nqos-wifi-mac-helper.h.

Constructor & Destructor Documentation

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 29 of file nqos-wifi-mac-helper.cc.

ns3::NqosWifiMacHelper::~NqosWifiMacHelper ( )
virtual

Destroy a NqosWifiMacHelper.

Definition at line 33 of file nqos-wifi-mac-helper.cc.

Member Function Documentation

Ptr< WifiMac > ns3::NqosWifiMacHelper::Create ( void  ) const
privatevirtual
Returns
a newly-created MAC object.

This method implements the pure virtual method defined in ns3::WifiMacHelper.

Reimplemented from ns3::WifiMacHelper.

Definition at line 78 of file nqos-wifi-mac-helper.cc.

References ns3::ObjectFactory::Create(), m_mac, and third::mac.

+ Here is the call graph for this function:

NqosWifiMacHelper ns3::NqosWifiMacHelper::Default ( void  )
static

Create a mac helper in a default working state.

i.e., this is an adhoc mac by default.

Definition at line 38 of file nqos-wifi-mac-helper.cc.

References SetType().

+ Here is the call graph for this function:

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 (),
std::string  n8 = "",
const AttributeValue v8 = EmptyAttributeValue (),
std::string  n9 = "",
const AttributeValue v9 = EmptyAttributeValue (),
std::string  n10 = "",
const AttributeValue v10 = EmptyAttributeValue () 
)
virtual
Parameters
typethe type of ns3::WifiMac to create.
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
n8the name of the attribute to set
v8the value of the attribute to set
n9the name of the attribute to set
v9the value of the attribute to set
n10the name of the attribute to set
v10the value of the attribute to set

All the attributes specified in this method should exist in the requested mac.

Reimplemented from ns3::WifiMacHelper.

Definition at line 50 of file nqos-wifi-mac-helper.cc.

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

Referenced by Default().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

ObjectFactory ns3::NqosWifiMacHelper::m_mac
protected

Definition at line 98 of file nqos-wifi-mac-helper.h.

Referenced by Create(), and SetType().


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