A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
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
27
namespace
ns3
28
{
29
30
NqosWaveMacHelper::NqosWaveMacHelper
()
31
{
32
}
33
34
NqosWaveMacHelper::~NqosWaveMacHelper
()
35
{
36
}
37
38
NqosWaveMacHelper
39
NqosWaveMacHelper::Default
()
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 *********/
51
QosWaveMacHelper::QosWaveMacHelper
()
52
{
53
}
54
55
QosWaveMacHelper::~QosWaveMacHelper
()
56
{
57
}
58
59
QosWaveMacHelper
60
QosWaveMacHelper::Default
()
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
ns3::BooleanValue
AttributeValue implementation for Boolean.
Definition:
boolean.h:37
ns3::NqosWaveMacHelper
Nqos Wave Mac Helper class.
Definition:
wave-mac-helper.h:35
ns3::NqosWaveMacHelper::SetType
void SetType(std::string type, Ts &&... args)
Definition:
wave-mac-helper.h:113
ns3::NqosWaveMacHelper::Default
static NqosWaveMacHelper Default()
Create a mac helper in a default working state.
Definition:
wave-mac-helper.cc:39
ns3::NqosWaveMacHelper::~NqosWaveMacHelper
~NqosWaveMacHelper() override
Destroy a NqosWaveMacHelper.
Definition:
wave-mac-helper.cc:34
ns3::NqosWaveMacHelper::NqosWaveMacHelper
NqosWaveMacHelper()
Create a NqosWaveMacHelper to make life easier for people who want to work with non-QOS Wave MAC laye...
Definition:
wave-mac-helper.cc:30
ns3::QosWaveMacHelper
Qos Wave Mac Helper class.
Definition:
wave-mac-helper.h:73
ns3::QosWaveMacHelper::QosWaveMacHelper
QosWaveMacHelper()
Create a QosWaveMacHelper that is used to make life easier when working with Wifi 802....
Definition:
wave-mac-helper.cc:51
ns3::QosWaveMacHelper::Default
static QosWaveMacHelper Default()
Create a mac helper in a default working state.
Definition:
wave-mac-helper.cc:60
ns3::QosWaveMacHelper::~QosWaveMacHelper
~QosWaveMacHelper() override
Destroy a QosWaveMacHelper.
Definition:
wave-mac-helper.cc:55
ns3::QosWaveMacHelper::SetType
void SetType(std::string type, Ts &&... args)
Definition:
wave-mac-helper.h:124
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
wave-mac-helper.h
src
wave
helper
wave-mac-helper.cc
Generated on Fri Mar 17 2023 12:39:39 for ns-3 by
1.9.3