A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
wave-mac-helper.h
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 /*
3  * Copyright (c) 2008 INRIA
4  * Copyright (c) 2009 MIRKO BANCHI
5  * Copyright (c) 2013 Dalian University of Technology
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License version 2 as
9  * published by the Free Software Foundation;
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19  *
20  * Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
21  * Author: Mirko Banchi <mk.banchi@gmail.com>
22  * Author: Junling Bu <linlinjavaer@gmail.com>
23  */
24 #ifndef WAVE_MAC_HELPER_H
25 #define WAVE_MAC_HELPER_H
26 #include "ns3/qos-wifi-mac-helper.h"
27 #include "ns3/nqos-wifi-mac-helper.h"
28 
29 namespace ns3 {
30 
32 {
33 public:
38  NqosWaveMacHelper (void);
39 
44  virtual ~NqosWaveMacHelper (void);
49  static NqosWaveMacHelper Default (void);
75  virtual void SetType (std::string type,
76  std::string n0 = "", const AttributeValue &v0 = EmptyAttributeValue (),
77  std::string n1 = "", const AttributeValue &v1 = EmptyAttributeValue (),
78  std::string n2 = "", const AttributeValue &v2 = EmptyAttributeValue (),
79  std::string n3 = "", const AttributeValue &v3 = EmptyAttributeValue (),
80  std::string n4 = "", const AttributeValue &v4 = EmptyAttributeValue (),
81  std::string n5 = "", const AttributeValue &v5 = EmptyAttributeValue (),
82  std::string n6 = "", const AttributeValue &v6 = EmptyAttributeValue (),
83  std::string n7 = "", const AttributeValue &v7 = EmptyAttributeValue ());
84 };
85 
87 {
88 public:
93  QosWaveMacHelper (void);
94 
99  virtual ~QosWaveMacHelper (void);
100 
104  static QosWaveMacHelper Default (void);
105 
131  virtual void SetType (std::string type,
132  std::string n0 = "", const AttributeValue &v0 = EmptyAttributeValue (),
133  std::string n1 = "", const AttributeValue &v1 = EmptyAttributeValue (),
134  std::string n2 = "", const AttributeValue &v2 = EmptyAttributeValue (),
135  std::string n3 = "", const AttributeValue &v3 = EmptyAttributeValue (),
136  std::string n4 = "", const AttributeValue &v4 = EmptyAttributeValue (),
137  std::string n5 = "", const AttributeValue &v5 = EmptyAttributeValue (),
138  std::string n6 = "", const AttributeValue &v6 = EmptyAttributeValue (),
139  std::string n7 = "", const AttributeValue &v7 = EmptyAttributeValue ());
140 };
141 
142 }
143 
144 #endif /* WAVE_MAC_HELPER_H */
Hold a value for an Attribute.
Definition: attribute.h:56
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())
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())
QosWaveMacHelper(void)
Create a QosWaveMacHelper that is used to make life easier when working with Wifi 802...
A class for an empty attribute value.
Definition: attribute.h:222
virtual ~QosWaveMacHelper(void)
create non QoS-enabled MAC layers for a ns3::WifiNetDevice.
create QoS-enabled MAC layers for a ns3::WifiNetDevice.
NqosWaveMacHelper(void)
Create a NqosWaveMacHelper to make life easier for people who want to work with non-QOS Wave MAC laye...
virtual ~NqosWaveMacHelper(void)
static QosWaveMacHelper Default(void)
Create a mac helper in a default working state.
static NqosWaveMacHelper Default(void)
Create a mac helper in a default working state.