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
rraa-wifi-manager.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2005,2006 INRIA
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: Federico Maguolo <maguolof@dei.unipd.it>
19
*/
20
#ifndef RRAA_WIFI_MANAGER_H
21
#define RRAA_WIFI_MANAGER_H
22
23
#include "ns3/nstime.h"
24
#include "
wifi-remote-station-manager.h
"
25
26
namespace
ns3 {
27
28
struct
RraaWifiRemoteStation;
29
39
class
RraaWifiManager
:
public
WifiRemoteStationManager
40
{
41
public
:
42
static
TypeId
GetTypeId
(
void
);
43
44
RraaWifiManager
();
45
virtual
~RraaWifiManager
();
46
47
private
:
48
struct
ThresholdsItem
49
{
50
uint32_t
datarate
;
51
double
pori
;
52
double
pmtl
;
53
uint32_t
ewnd
;
54
};
55
56
// overriden from base class
57
virtual
WifiRemoteStation
*
DoCreateStation
(
void
)
const
;
58
virtual
void
DoReportRxOk
(
WifiRemoteStation
*station,
59
double
rxSnr,
WifiMode
txMode);
60
virtual
void
DoReportRtsFailed
(
WifiRemoteStation
*station);
61
virtual
void
DoReportDataFailed
(
WifiRemoteStation
*station);
62
virtual
void
DoReportRtsOk
(
WifiRemoteStation
*station,
63
double
ctsSnr,
WifiMode
ctsMode,
double
rtsSnr);
64
virtual
void
DoReportDataOk
(
WifiRemoteStation
*station,
65
double
ackSnr,
WifiMode
ackMode,
double
dataSnr);
66
virtual
void
DoReportFinalRtsFailed
(
WifiRemoteStation
*station);
67
virtual
void
DoReportFinalDataFailed
(
WifiRemoteStation
*station);
68
virtual
WifiMode
DoGetDataMode
(
WifiRemoteStation
*station, uint32_t size);
69
virtual
WifiMode
DoGetRtsMode
(
WifiRemoteStation
*station);
70
virtual
bool
DoNeedRts
(
WifiRemoteStation
*st,
71
Ptr<const Packet>
packet,
bool
normally);
72
virtual
bool
IsLowLatency
(
void
)
const
;
73
74
uint32_t
GetMaxRate
(
RraaWifiRemoteStation
*station);
75
uint32_t
GetMinRate
(
RraaWifiRemoteStation
*station);
76
void
CheckTimeout
(
RraaWifiRemoteStation
*station);
77
void
RunBasicAlgorithm
(
RraaWifiRemoteStation
*station);
78
void
ARts
(
RraaWifiRemoteStation
*station);
79
void
ResetCountersBasic
(
RraaWifiRemoteStation
*station);
80
struct
ThresholdsItem
GetThresholds
(
WifiMode
mode) const;
81
struct
ThresholdsItem
GetThresholds
(
RraaWifiRemoteStation
*station, uint32_t rate)
const
;
82
83
bool
m_basic
;
84
Time
m_timeout
;
85
uint32_t
m_ewndfor54
;
86
uint32_t
m_ewndfor48
;
87
uint32_t
m_ewndfor36
;
88
uint32_t
m_ewndfor24
;
89
uint32_t
m_ewndfor18
;
90
uint32_t
m_ewndfor12
;
91
uint32_t
m_ewndfor9
;
92
uint32_t
m_ewndfor6
;
93
double
m_porifor48
;
94
double
m_porifor36
;
95
double
m_porifor24
;
96
double
m_porifor18
;
97
double
m_porifor12
;
98
double
m_porifor9
;
99
double
m_porifor6
;
100
double
m_pmtlfor54
;
101
double
m_pmtlfor48
;
102
double
m_pmtlfor36
;
103
double
m_pmtlfor24
;
104
double
m_pmtlfor18
;
105
double
m_pmtlfor12
;
106
double
m_pmtlfor9
;
107
};
108
109
}
// namespace ns3
110
111
#endif
/* RRAA_WIFI_MANAGER_H */
src
wifi
model
rraa-wifi-manager.h
Generated on Tue Oct 9 2012 16:45:49 for ns-3 by
1.8.1.2