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
mpdu-standard-aggregator.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
* Author: Ghada Badawy <gbadawy@gmail.com>
19
*/
20
21
#ifndef MPDU_STANDARD_AGGREGATOR_H
22
#define MPDU_STANDARD_AGGREGATOR_H
23
24
#include "
mpdu-aggregator.h
"
25
26
namespace
ns3
{
27
33
class
MpduStandardAggregator
:
public
MpduAggregator
34
{
35
public
:
40
static
TypeId
GetTypeId
(
void
);
41
MpduStandardAggregator
();
42
~MpduStandardAggregator
();
43
50
void
SetMaxAmpduSize
(uint32_t maxSize);
57
uint32_t
GetMaxAmpduSize
(
void
)
const
;
68
bool
Aggregate
(
Ptr<const Packet>
packet,
Ptr<Packet>
aggregatedPacket)
const
;
75
void
AggregateSingleMpdu
(
Ptr<const Packet>
packet,
Ptr<Packet>
aggregatedPacket)
const
;
83
void
AddHeaderAndPad
(
Ptr<Packet>
packet,
bool
last,
bool
isSingleMpdu)
const
;
94
bool
CanBeAggregated
(uint32_t
packetSize
,
Ptr<Packet>
aggregatedPacket, uint8_t blockAckSize)
const
;
102
uint32_t
CalculatePadding
(
Ptr<const Packet>
packet)
const
;
103
104
105
private
:
106
uint32_t
m_maxAmpduLength
;
107
};
108
109
}
//namespace ns3
110
111
#endif
/* MPDU_STANDARD_AGGREGATOR_H */
ns3::MpduAggregator
Abstract class that concrete mpdu aggregators have to implement.
Definition:
mpdu-aggregator.h:36
ns3::MpduStandardAggregator::AggregateSingleMpdu
void AggregateSingleMpdu(Ptr< const Packet > packet, Ptr< Packet > aggregatedPacket) const
Definition:
mpdu-standard-aggregator.cc:96
ns3::MpduStandardAggregator::AddHeaderAndPad
void AddHeaderAndPad(Ptr< Packet > packet, bool last, bool isSingleMpdu) const
Definition:
mpdu-standard-aggregator.cc:120
ns3::Ptr< const Packet >
ns3::MpduStandardAggregator::SetMaxAmpduSize
void SetMaxAmpduSize(uint32_t maxSize)
Sets the maximum A-MPDU size in bytes.
Definition:
mpdu-standard-aggregator.cc:55
ns3::MpduStandardAggregator::Aggregate
bool Aggregate(Ptr< const Packet > packet, Ptr< Packet > aggregatedPacket) const
Definition:
mpdu-standard-aggregator.cc:67
mpdu-aggregator.h
ns3::MpduStandardAggregator::m_maxAmpduLength
uint32_t m_maxAmpduLength
Maximum length in bytes of A-MPDUs.
Definition:
mpdu-standard-aggregator.h:106
ns3::MpduStandardAggregator::CalculatePadding
uint32_t CalculatePadding(Ptr< const Packet > packet) const
Definition:
mpdu-standard-aggregator.cc:165
ns3::MpduStandardAggregator::MpduStandardAggregator
MpduStandardAggregator()
Definition:
mpdu-standard-aggregator.cc:46
ns3::MpduStandardAggregator::GetTypeId
static TypeId GetTypeId(void)
Get the type ID.
Definition:
mpdu-standard-aggregator.cc:32
ns3::MpduStandardAggregator::~MpduStandardAggregator
~MpduStandardAggregator()
Definition:
mpdu-standard-aggregator.cc:50
ns3::MpduStandardAggregator::GetMaxAmpduSize
uint32_t GetMaxAmpduSize(void) const
Returns the maximum A-MPDU size in bytes.
Definition:
mpdu-standard-aggregator.cc:61
ns3::MpduStandardAggregator::CanBeAggregated
bool CanBeAggregated(uint32_t packetSize, Ptr< Packet > aggregatedPacket, uint8_t blockAckSize) const
Definition:
mpdu-standard-aggregator.cc:146
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::MpduStandardAggregator
Standard MPDU aggregator.
Definition:
mpdu-standard-aggregator.h:33
packetSize
static const uint32_t packetSize
Definition:
power-adaptation-distance.cc:101
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:58
src
wifi
model
mpdu-standard-aggregator.h
Generated on Wed Oct 11 2017 16:39:35 for ns-3 by
1.8.9.1