A Discrete-Event Network Simulator
API
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/wifi-mac-helper.h"
27 
28 namespace ns3 {
29 
35 {
36 public:
41  NqosWaveMacHelper (void);
42 
46  virtual ~NqosWaveMacHelper (void);
52  static NqosWaveMacHelper Default (void);
84  virtual void SetType (std::string type,
85  std::string n0 = "", const AttributeValue &v0 = EmptyAttributeValue (),
86  std::string n1 = "", const AttributeValue &v1 = EmptyAttributeValue (),
87  std::string n2 = "", const AttributeValue &v2 = EmptyAttributeValue (),
88  std::string n3 = "", const AttributeValue &v3 = EmptyAttributeValue (),
89  std::string n4 = "", const AttributeValue &v4 = EmptyAttributeValue (),
90  std::string n5 = "", const AttributeValue &v5 = EmptyAttributeValue (),
91  std::string n6 = "", const AttributeValue &v6 = EmptyAttributeValue (),
92  std::string n7 = "", const AttributeValue &v7 = EmptyAttributeValue (),
93  std::string n8 = "", const AttributeValue &v8 = EmptyAttributeValue (),
94  std::string n9 = "", const AttributeValue &v9 = EmptyAttributeValue (),
95  std::string n10 = "", const AttributeValue &v10 = EmptyAttributeValue ());
96 };
97 
103 {
104 public:
109  QosWaveMacHelper (void);
110 
114  virtual ~QosWaveMacHelper (void);
115 
119  static QosWaveMacHelper Default (void);
120 
152  virtual void SetType (std::string type,
153  std::string n0 = "", const AttributeValue &v0 = EmptyAttributeValue (),
154  std::string n1 = "", const AttributeValue &v1 = EmptyAttributeValue (),
155  std::string n2 = "", const AttributeValue &v2 = EmptyAttributeValue (),
156  std::string n3 = "", const AttributeValue &v3 = EmptyAttributeValue (),
157  std::string n4 = "", const AttributeValue &v4 = EmptyAttributeValue (),
158  std::string n5 = "", const AttributeValue &v5 = EmptyAttributeValue (),
159  std::string n6 = "", const AttributeValue &v6 = EmptyAttributeValue (),
160  std::string n7 = "", const AttributeValue &v7 = EmptyAttributeValue (),
161  std::string n8 = "", const AttributeValue &v8 = EmptyAttributeValue (),
162  std::string n9 = "", const AttributeValue &v9 = EmptyAttributeValue (),
163  std::string n10 = "", const AttributeValue &v10 = EmptyAttributeValue ());
164 };
165 
166 }
167 
168 #endif /* WAVE_MAC_HELPER_H */
Hold a value for an Attribute.
Definition: attribute.h:68
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())
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())
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:232
virtual ~QosWaveMacHelper(void)
Destroy a QosWaveMacHelper.
Qos Wave Mac Helper class.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
NqosWaveMacHelper(void)
Create a NqosWaveMacHelper to make life easier for people who want to work with non-QOS Wave MAC laye...
create MAC layers for a ns3::WifiNetDevice.
Nqos Wave Mac Helper class.
virtual ~NqosWaveMacHelper(void)
Destroy a NqosWaveMacHelper.
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.