A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
ht-wifi-mac-helper.cc
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2009 MIRKO BANCHI
4
*
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License version 2 as
7
* published by the Free Software Foundation;
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
*
18
* Author: Ghada Badawy <gbadawy@gmail.com>
19
*/
20
#include "
ht-wifi-mac-helper.h
"
21
#include "ns3/wifi-mac.h"
22
#include "ns3/edca-txop-n.h"
23
#include "ns3/pointer.h"
24
#include "ns3/boolean.h"
25
#include "ns3/uinteger.h"
26
27
namespace
ns3 {
28
29
HtWifiMacHelper::HtWifiMacHelper
()
30
{
31
}
32
33
HtWifiMacHelper::~HtWifiMacHelper
()
34
{
35
}
36
37
HtWifiMacHelper
38
HtWifiMacHelper::Default
(
void
)
39
{
40
HtWifiMacHelper
helper;
41
42
// We're making Ht-enabled Wi-Fi MACs here, so we set the necessary
43
// attribute. I've carefully positioned this here so that someone
44
// who knows what they're doing can override with explicit
45
// attributes.
46
helper.
SetType
(
"ns3::StaWifiMac"
,
47
"QosSupported"
,
BooleanValue
(
true
),
48
"HtSupported"
,
BooleanValue
(
true
));
49
50
return
helper;
51
}
52
53
54
}
// namespace ns3
55
ns3::HtWifiMacHelper
create HT-enabled MAC layers for a ns3::WifiNetDevice.
Definition:
ht-wifi-mac-helper.h:36
ns3::BooleanValue
Hold a bool native type.
Definition:
boolean.h:38
ns3::HtWifiMacHelper::~HtWifiMacHelper
virtual ~HtWifiMacHelper()
Definition:
ht-wifi-mac-helper.cc:33
ns3::QosWifiMacHelper::SetType
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())
Set the underlying type of the MAC and its attributes.
Definition:
qos-wifi-mac-helper.cc:54
ns3::HtWifiMacHelper::Default
static HtWifiMacHelper Default(void)
Create a mac helper in a default working state.
Definition:
ht-wifi-mac-helper.cc:38
ns3::HtWifiMacHelper::HtWifiMacHelper
HtWifiMacHelper()
Create a QosWifiMacHelper that is used to make life easier when working with Wifi devices using a QOS...
Definition:
ht-wifi-mac-helper.cc:29
ht-wifi-mac-helper.h
src
wifi
helper
ht-wifi-mac-helper.cc
Generated on Sat Apr 19 2014 14:07:10 for ns-3 by
1.8.6