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

Nqos Wave Mac Helper class. More...

#include "wave-mac-helper.h"

+ Inheritance diagram for ns3::NqosWaveMacHelper:
+ Collaboration diagram for ns3::NqosWaveMacHelper:

Public Member Functions

 NqosWaveMacHelper (void)
 Create a NqosWaveMacHelper to make life easier for people who want to work with non-QOS Wave MAC layers. More...
 
virtual ~NqosWaveMacHelper (void)
 Destroy a NqosWaveMacHelper. 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...
 
virtual Ptr< WifiMacCreate (Ptr< NetDevice > device, WifiStandard standard) const
 
template<typename... Args>
void SetAckManager (std::string type, Args &&... args)
 Helper function used to set the Acknowledgment Manager. More...
 
template<typename... Args>
void SetProtectionManager (std::string type, Args &&... args)
 Helper function used to set the Protection Manager. More...
 
template<typename... Args>
void SetType (std::string type, Args &&... args)
 

Static Public Member Functions

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

Additional Inherited Members

- Protected Attributes inherited from ns3::WifiMacHelper
ObjectFactory m_ackManager
 Factory to create an acknowledgment manager. More...
 
ObjectFactory m_mac
 MAC object factory. More...
 
ObjectFactory m_protectionManager
 Factory to create a protection manager. More...
 

Detailed Description

Nqos Wave Mac Helper class.

Definition at line 34 of file wave-mac-helper.h.

Constructor & Destructor Documentation

◆ NqosWaveMacHelper()

ns3::NqosWaveMacHelper::NqosWaveMacHelper ( void  )

Create a NqosWaveMacHelper to make life easier for people who want to work with non-QOS Wave MAC layers.

Definition at line 29 of file wave-mac-helper.cc.

◆ ~NqosWaveMacHelper()

ns3::NqosWaveMacHelper::~NqosWaveMacHelper ( void  )
virtual

Destroy a NqosWaveMacHelper.

Definition at line 33 of file wave-mac-helper.cc.

Member Function Documentation

◆ Default()

NqosWaveMacHelper ns3::NqosWaveMacHelper::Default ( void  )
static

Create a mac helper in a default working state.

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

Returns
NqosWaveMacHelper

Definition at line 38 of file wave-mac-helper.cc.

References SetType().

+ Here is the call graph for this function:

◆ SetType()

void ns3::NqosWaveMacHelper::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 value of the attribute to set
v8the value of the attribute to set
n9the value of the attribute to set
v9the value of the attribute to set
n10the value 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.

note: Here we require users set type with OcbWifiMac or its subclass, otherwise it will become error

Definition at line 49 of file wave-mac-helper.cc.

References NS_FATAL_ERROR, and ns3::WifiMacHelper::SetType().

Referenced by Default().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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