A Discrete-Event Network Simulator
API
wave-mac-helper.cc
Go to the documentation of this file.
1/*
2 * Copyright (c) 2008 INRIA
3 * Copyright (c) 2009 MIRKO BANCHI
4 * Copyright (c) 2013 Dalian University of Technology
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation;
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 *
19 * Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
20 * Author: Mirko Banchi <mk.banchi@gmail.com>
21 * Author: Junling Bu <linlinjavaer@gmail.com>
22 */
23#include "wave-mac-helper.h"
24
25#include "ns3/boolean.h"
26
27namespace ns3
28{
29
31{
32}
33
35{
36}
37
40{
41 NqosWaveMacHelper helper;
42 // We're making non QoS-enabled Wi-Fi MACs here, so we set the
43 // necessary attribute. I've carefully positioned this here so that
44 // someone who knows what they're doing can override with explicit
45 // attributes.
46 helper.SetType("ns3::OcbWifiMac", "QosSupported", BooleanValue(false));
47 return helper;
48}
49
50/********** QosWifi80211pMacHelper *********/
52{
53}
54
56{
57}
58
61{
62 QosWaveMacHelper helper;
63
64 // We're making QoS-enabled Wi-Fi MACs here, so we set the necessary
65 // attribute. I've carefully positioned this here so that someone
66 // who knows what they're doing can override with explicit
67 // attributes.
68 helper.SetType("ns3::OcbWifiMac", "QosSupported", BooleanValue(true));
69
70 return helper;
71}
72} // namespace ns3
AttributeValue implementation for Boolean.
Definition: boolean.h:37
Nqos Wave Mac Helper class.
void SetType(std::string type, Ts &&... args)
static NqosWaveMacHelper Default()
Create a mac helper in a default working state.
~NqosWaveMacHelper() override
Destroy a NqosWaveMacHelper.
NqosWaveMacHelper()
Create a NqosWaveMacHelper to make life easier for people who want to work with non-QOS Wave MAC laye...
Qos Wave Mac Helper class.
QosWaveMacHelper()
Create a QosWaveMacHelper that is used to make life easier when working with Wifi 802....
static QosWaveMacHelper Default()
Create a mac helper in a default working state.
~QosWaveMacHelper() override
Destroy a QosWaveMacHelper.
void SetType(std::string type, Ts &&... args)
Every class exported by the ns3 library is enclosed in the ns3 namespace.