A Discrete-Event Network Simulator
Home
Tutorials ▼
English
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 "ns3/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
void
DoInitialize
(
void
)
override
;
62
WifiRemoteStation
*
DoCreateStation
(
void
)
const override
;
63
void
DoReportRxOk
(
WifiRemoteStation
*station,
64
double
rxSnr,
WifiMode
txMode)
override
;
65
void
DoReportRtsFailed
(
WifiRemoteStation
*station)
override
;
66
void
DoReportDataFailed
(
WifiRemoteStation
*station)
override
;
67
void
DoReportRtsOk
(
WifiRemoteStation
*station,
68
double
ctsSnr,
WifiMode
ctsMode,
double
rtsSnr)
override
;
69
void
DoReportDataOk
(
WifiRemoteStation
*station,
double
ackSnr,
WifiMode
ackMode,
70
double
dataSnr, uint16_t dataChannelWidth, uint8_t dataNss)
override
;
71
void
DoReportFinalRtsFailed
(
WifiRemoteStation
*station)
override
;
72
void
DoReportFinalDataFailed
(
WifiRemoteStation
*station)
override
;
73
WifiTxVector
DoGetDataTxVector
(
WifiRemoteStation
*station)
override
;
74
WifiTxVector
DoGetRtsTxVector
(
WifiRemoteStation
*station)
override
;
75
76
uint32_t
m_timerThreshold
;
77
uint32_t
m_successThreshold
;
78
79
TracedValue<uint64_t>
m_currentRate
;
80
};
81
82
}
//namespace ns3
83
84
#endif
/* ARF_WIFI_MANAGER_H */
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:59
ns3::ArfWifiManager::m_timerThreshold
uint32_t m_timerThreshold
timer threshold
Definition:
arf-wifi-manager.h:76
ns3::ArfWifiManager::DoReportDataFailed
void DoReportDataFailed(WifiRemoteStation *station) override
It is important to realize that "recovery" mode starts after failure of the first transmission after ...
Definition:
arf-wifi-manager.cc:139
ns3::ArfWifiManager
ARF Rate control algorithm.
Definition:
arf-wifi-manager.h:49
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::ArfWifiManager::DoGetDataTxVector
WifiTxVector DoGetDataTxVector(WifiRemoteStation *station) override
Definition:
arf-wifi-manager.cc:227
ns3::WifiRemoteStationManager
hold a list of per-remote-station state.
Definition:
wifi-remote-station-manager.h:121
ns3::ArfWifiManager::DoReportRtsFailed
void DoReportRtsFailed(WifiRemoteStation *station) override
This method is a pure virtual method that must be implemented by the sub-class.
Definition:
arf-wifi-manager.cc:122
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:71
ns3::ArfWifiManager::ArfWifiManager
ArfWifiManager()
Definition:
arf-wifi-manager.cc:74
ns3::ArfWifiManager::DoInitialize
void DoInitialize(void) override
Initialize() implementation.
Definition:
arf-wifi-manager.cc:87
ns3::ArfWifiManager::DoCreateStation
WifiRemoteStation * DoCreateStation(void) const override
Definition:
arf-wifi-manager.cc:105
ns3::WifiMode
represent a single transmission mode
Definition:
wifi-mode.h:48
ns3::ArfWifiManager::DoReportDataOk
void DoReportDataOk(WifiRemoteStation *station, double ackSnr, WifiMode ackMode, double dataSnr, uint16_t dataChannelWidth, uint8_t dataNss) override
This method is a pure virtual method that must be implemented by the sub-class.
Definition:
arf-wifi-manager.cc:192
ns3::WifiRemoteStation
hold per-remote-station state.
Definition:
wifi-remote-station-manager.h:62
ns3::ArfWifiManager::DoReportFinalRtsFailed
void DoReportFinalRtsFailed(WifiRemoteStation *station) override
This method is a pure virtual method that must be implemented by the sub-class.
Definition:
arf-wifi-manager.cc:215
ns3::ArfWifiManager::DoReportFinalDataFailed
void DoReportFinalDataFailed(WifiRemoteStation *station) override
This method is a pure virtual method that must be implemented by the sub-class.
Definition:
arf-wifi-manager.cc:221
ns3::TracedValue< uint64_t >
ns3::ArfWifiManager::~ArfWifiManager
virtual ~ArfWifiManager()
Definition:
arf-wifi-manager.cc:81
ns3::ArfWifiManager::DoReportRtsOk
void DoReportRtsOk(WifiRemoteStation *station, double ctsSnr, WifiMode ctsMode, double rtsSnr) override
This method is a pure virtual method that must be implemented by the sub-class.
Definition:
arf-wifi-manager.cc:185
ns3::ArfWifiManager::GetTypeId
static TypeId GetTypeId(void)
Get the type ID.
Definition:
arf-wifi-manager.cc:51
ns3::ArfWifiManager::m_successThreshold
uint32_t m_successThreshold
success threshold
Definition:
arf-wifi-manager.h:77
ns3::ArfWifiManager::DoGetRtsTxVector
WifiTxVector DoGetRtsTxVector(WifiRemoteStation *station) override
Definition:
arf-wifi-manager.cc:246
ns3::ArfWifiManager::m_currentRate
TracedValue< uint64_t > m_currentRate
Trace rate changes.
Definition:
arf-wifi-manager.h:79
ns3::ArfWifiManager::DoReportRxOk
void DoReportRxOk(WifiRemoteStation *station, double rxSnr, WifiMode txMode) override
This method is a pure virtual method that must be implemented by the sub-class.
Definition:
arf-wifi-manager.cc:179
src
wifi
model
rate-control
arf-wifi-manager.h
Generated on Fri Oct 1 2021 17:03:47 for ns-3 by
1.8.20