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
ampdu-tag.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2013
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
* Authors: Ghada Badawy <gbadawy@gmail.com>
19
* Sébastien Deronne <sebastien.deronne@gmail.com>
20
*/
21
22
#ifndef AMPDU_TAG_H
23
#define AMPDU_TAG_H
24
25
#include "ns3/packet.h"
26
#include "ns3/nstime.h"
27
28
namespace
ns3 {
29
30
class
Tag;
31
38
class
AmpduTag
:
public
Tag
39
{
40
public
:
41
static
TypeId
GetTypeId
(
void
);
42
virtual
TypeId
GetInstanceTypeId
(
void
)
const
;
43
47
AmpduTag
();
51
void
SetAmpdu
(
bool
supported);
57
void
SetRemainingNbOfMpdus
(uint8_t nbofmpdus);
63
void
SetRemainingAmpduDuration
(
Time
duration);
64
65
virtual
void
Serialize
(
TagBuffer
i)
const
;
66
virtual
void
Deserialize
(
TagBuffer
i);
67
virtual
uint32_t
GetSerializedSize
()
const
;
68
virtual
void
Print
(std::ostream &os)
const
;
69
76
bool
GetAmpdu
(
void
)
const
;
82
uint8_t
GetRemainingNbOfMpdus
(
void
)
const
;
88
Time
GetRemainingAmpduDuration
(
void
)
const
;
89
90
private
:
91
uint8_t
m_ampdu
;
92
uint8_t
m_nbOfMpdus
;
93
Time
m_duration
;
94
};
95
96
}
//namespace ns3
97
98
#endif
/* AMPDU_TAG_H */
99
ns3::Time
Simulation virtual time values and global simulation resolution.
Definition:
nstime.h:102
ns3::AmpduTag::GetRemainingNbOfMpdus
uint8_t GetRemainingNbOfMpdus(void) const
Definition:
ampdu-tag.cc:110
ns3::AmpduTag::Print
virtual void Print(std::ostream &os) const
Definition:
ampdu-tag.cc:122
ns3::AmpduTag::GetAmpdu
bool GetAmpdu(void) const
Definition:
ampdu-tag.cc:104
ns3::AmpduTag::GetSerializedSize
virtual uint32_t GetSerializedSize() const
Definition:
ampdu-tag.cc:79
ns3::AmpduTag::SetAmpdu
void SetAmpdu(bool supported)
Set m_ampdu to 1.
Definition:
ampdu-tag.cc:59
ns3::AmpduTag::AmpduTag
AmpduTag()
Create a AmpduTag with the default =0 no Ampdu.
Definition:
ampdu-tag.cc:51
ns3::AmpduTag::m_nbOfMpdus
uint8_t m_nbOfMpdus
Remaining number of MPDUs in the A-MPDU.
Definition:
ampdu-tag.h:92
ns3::AmpduTag
The aim of the AmpduTag is to provide means for a MAC to specify that a packet includes A-MPDU since ...
Definition:
ampdu-tag.h:38
ns3::Tag
tag a set of bytes in a packet
Definition:
tag.h:36
ns3::AmpduTag::GetInstanceTypeId
virtual TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition:
ampdu-tag.cc:46
ns3::AmpduTag::Deserialize
virtual void Deserialize(TagBuffer i)
Definition:
ampdu-tag.cc:94
ns3::AmpduTag::m_ampdu
uint8_t m_ampdu
Flag whether it is an A-MPDU.
Definition:
ampdu-tag.h:91
ns3::TagBuffer
read and write tag data
Definition:
tag-buffer.h:51
ns3::AmpduTag::Serialize
virtual void Serialize(TagBuffer i) const
Definition:
ampdu-tag.cc:85
ns3::AmpduTag::GetTypeId
static TypeId GetTypeId(void)
Definition:
ampdu-tag.cc:31
ns3::AmpduTag::SetRemainingNbOfMpdus
void SetRemainingNbOfMpdus(uint8_t nbofmpdus)
Definition:
ampdu-tag.cc:65
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:58
ns3::AmpduTag::GetRemainingAmpduDuration
Time GetRemainingAmpduDuration(void) const
Definition:
ampdu-tag.cc:116
ns3::AmpduTag::m_duration
Time m_duration
Remaining duration of the A-MPDU in nanoseconds.
Definition:
ampdu-tag.h:93
ns3::AmpduTag::SetRemainingAmpduDuration
void SetRemainingAmpduDuration(Time duration)
Definition:
ampdu-tag.cc:72
src
wifi
model
ampdu-tag.h
Generated on Wed Jul 6 2016 17:11:42 for ns-3 by
1.8.6