|
A Discrete-Event Network Simulator
|
API
|
Go to the documentation of this file.
21 #ifndef APARF_WIFI_MANAGER_H
22 #define APARF_WIFI_MANAGER_H
24 #include "ns3/wifi-remote-station-manager.h"
28 struct AparfWifiRemoteStation;
73 double rxSnr,
WifiMode txMode)
override;
77 double ctsSnr,
WifiMode ctsMode,
double rtsSnr)
override;
79 double dataSnr, uint16_t dataChannelWidth, uint8_t dataNss)
override;
WifiTxVector DoGetDataTxVector(WifiRemoteStation *station) override
a unique identifier for an interface.
void DoReportDataFailed(WifiRemoteStation *station) override
This method is a pure virtual method that must be implemented by the sub-class.
WifiTxVector DoGetRtsTxVector(WifiRemoteStation *station) override
Hold per-remote-station state for APARF Wifi manager.
uint8_t m_minPower
Minimal power level.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
TracedCallback< DataRate, DataRate, Mac48Address > m_rateChange
The trace source fired when the transmission rate changes.
hold a list of per-remote-station state.
This class mimics the TXVECTOR which is to be passed to the PHY in order to define the parameters whi...
virtual ~AparfWifiManager()
static TypeId GetTypeId(void)
Register this type.
uint32_t m_succesMax2
The minimum number of successful transmissions in "Low" state to try a new power or rate.
void DoReportRtsFailed(WifiRemoteStation *station) override
This method is a pure virtual method that must be implemented by the sub-class.
void DoReportFinalDataFailed(WifiRemoteStation *station) override
This method is a pure virtual method that must be implemented by the sub-class.
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.
uint8_t m_maxPower
Maximal power level.
represent a single transmission mode
uint32_t m_powerMax
The maximum number of power changes.
WifiRemoteStation * DoCreateStation(void) const override
State
Enumeration of the possible states of the channel.
uint8_t m_rateDec
Step size for decrement the rate.
TracedCallback< double, double, Mac48Address > m_powerChange
The trace source fired when the transmission power changes.
hold per-remote-station state.
uint32_t m_succesMax1
The minimum number of successful transmissions in "High" state to try a new power or rate.
void DoReportFinalRtsFailed(WifiRemoteStation *station) override
This method is a pure virtual method that must be implemented by the sub-class.
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.
uint32_t m_failMax
The minimum number of failed transmissions to try a new power or rate.
Forward calls to a chain of Callback.
void DoInitialize(void) override
Initialize() implementation.
void SetupPhy(const Ptr< WifiPhy > phy) override
Set up PHY associated with this device since it is the object that knows the full set of transmit rat...
uint8_t m_powerInc
Step size for increment the power.
uint8_t m_rateInc
Step size for increment the rate.
void CheckInit(AparfWifiRemoteStation *station)
Check for initializations.
uint8_t m_powerDec
Step size for decrement the power.
APARF Power and rate control algorithm.
void DoReportRxOk(WifiRemoteStation *station, double rxSnr, WifiMode txMode) override
This method is a pure virtual method that must be implemented by the sub-class.