A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
arf-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: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
19
*/
20
21
#ifndef ARF_WIFI_MANAGER_H
22
#define ARF_WIFI_MANAGER_H
23
24
#include "ns3/traced-value.h"
25
#include "
wifi-remote-station-manager.h
"
26
27
namespace
ns3
{
28
48
class
ArfWifiManager
:
public
WifiRemoteStationManager
49
{
50
public
:
55
static
TypeId
GetTypeId
(
void
);
56
ArfWifiManager
();
57
virtual
~ArfWifiManager
();
58
59
60
private
:
61
// Overridden from base class.
62
void
DoInitialize
(
void
);
63
WifiRemoteStation
*
DoCreateStation
(
void
)
const
;
64
void
DoReportRxOk
(
WifiRemoteStation
*station,
65
double
rxSnr,
WifiMode
txMode);
66
void
DoReportRtsFailed
(
WifiRemoteStation
*station);
67
void
DoReportDataFailed
(
WifiRemoteStation
*station);
68
void
DoReportRtsOk
(
WifiRemoteStation
*station,
69
double
ctsSnr,
WifiMode
ctsMode,
double
rtsSnr);
70
void
DoReportDataOk
(
WifiRemoteStation
*station,
71
double
ackSnr,
WifiMode
ackMode,
double
dataSnr);
72
void
DoReportFinalRtsFailed
(
WifiRemoteStation
*station);
73
void
DoReportFinalDataFailed
(
WifiRemoteStation
*station);
74
WifiTxVector
DoGetDataTxVector
(
WifiRemoteStation
*station);
75
WifiTxVector
DoGetRtsTxVector
(
WifiRemoteStation
*station);
76
bool
IsLowLatency
(
void
)
const
;
77
78
uint32_t
m_timerThreshold
;
79
uint32_t
m_successThreshold
;
80
81
TracedValue<uint64_t>
m_currentRate
;
82
};
83
84
}
//namespace ns3
85
86
#endif
/* ARF_WIFI_MANAGER_H */
ns3::WifiTxVector
This class mimics the TXVECTOR which is to be passed to the PHY in order to define the parameters whi...
Definition:
wifi-tx-vector.h:61
ns3::ArfWifiManager::m_timerThreshold
uint32_t m_timerThreshold
timer threshold
Definition:
arf-wifi-manager.h:78
ns3::ArfWifiManager::DoInitialize
void DoInitialize(void)
Initialize() implementation.
Definition:
arf-wifi-manager.cc:88
ns3::ArfWifiManager::~ArfWifiManager
virtual ~ArfWifiManager()
Definition:
arf-wifi-manager.cc:82
wifi-remote-station-manager.h
ns3::ArfWifiManager::DoReportRtsFailed
void DoReportRtsFailed(WifiRemoteStation *station)
This method is a pure virtual method that must be implemented by the sub-class.
Definition:
arf-wifi-manager.cc:124
ns3::TracedValue< uint64_t >
ns3::WifiMode
represent a single transmission modeA WifiMode is implemented by a single integer which is used to lo...
Definition:
wifi-mode.h:97
ns3::ArfWifiManager::GetTypeId
static TypeId GetTypeId(void)
Get the type ID.
Definition:
arf-wifi-manager.cc:52
ns3::ArfWifiManager::DoReportFinalDataFailed
void DoReportFinalDataFailed(WifiRemoteStation *station)
This method is a pure virtual method that must be implemented by the sub-class.
Definition:
arf-wifi-manager.cc:225
ns3::ArfWifiManager::DoReportDataOk
void DoReportDataOk(WifiRemoteStation *station, double ackSnr, WifiMode ackMode, double dataSnr)
This method is a pure virtual method that must be implemented by the sub-class.
Definition:
arf-wifi-manager.cc:195
ns3::WifiRemoteStationManager
hold a list of per-remote-station state.
Definition:
wifi-remote-station-manager.h:113
ns3::ArfWifiManager::DoReportDataFailed
void DoReportDataFailed(WifiRemoteStation *station)
It is important to realize that "recovery" mode starts after failure of the first transmission after ...
Definition:
arf-wifi-manager.cc:141
ns3::ArfWifiManager::m_currentRate
TracedValue< uint64_t > m_currentRate
Trace rate changes.
Definition:
arf-wifi-manager.h:81
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::ArfWifiManager::ArfWifiManager
ArfWifiManager()
Definition:
arf-wifi-manager.cc:75
ns3::ArfWifiManager::DoReportRxOk
void DoReportRxOk(WifiRemoteStation *station, double rxSnr, WifiMode txMode)
This method is a pure virtual method that must be implemented by the sub-class.
Definition:
arf-wifi-manager.cc:182
ns3::ArfWifiManager
ARF Rate control algorithm.
Definition:
arf-wifi-manager.h:48
ns3::ArfWifiManager::DoGetRtsTxVector
WifiTxVector DoGetRtsTxVector(WifiRemoteStation *station)
Definition:
arf-wifi-manager.cc:251
ns3::ArfWifiManager::IsLowLatency
bool IsLowLatency(void) const
Definition:
arf-wifi-manager.cc:278
ns3::ArfWifiManager::DoGetDataTxVector
WifiTxVector DoGetDataTxVector(WifiRemoteStation *station)
Definition:
arf-wifi-manager.cc:231
ns3::ArfWifiManager::DoReportFinalRtsFailed
void DoReportFinalRtsFailed(WifiRemoteStation *station)
This method is a pure virtual method that must be implemented by the sub-class.
Definition:
arf-wifi-manager.cc:219
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:58
ns3::WifiRemoteStation
hold per-remote-station state.
Definition:
wifi-remote-station-manager.h:56
ns3::ArfWifiManager::DoCreateStation
WifiRemoteStation * DoCreateStation(void) const
Definition:
arf-wifi-manager.cc:106
ns3::ArfWifiManager::DoReportRtsOk
void DoReportRtsOk(WifiRemoteStation *station, double ctsSnr, WifiMode ctsMode, double rtsSnr)
This method is a pure virtual method that must be implemented by the sub-class.
Definition:
arf-wifi-manager.cc:188
ns3::ArfWifiManager::m_successThreshold
uint32_t m_successThreshold
success threshold
Definition:
arf-wifi-manager.h:79
src
wifi
model
arf-wifi-manager.h
Generated on Wed Aug 21 2019 04:22:25 for ns-3 by
1.8.14