23 #include "ns3/double.h"
24 #include "ns3/uinteger.h"
27 #define Min(a,b) ((a < b) ? a : b)
28 #define Max(a,b) ((a > b) ? a : b)
62 .AddConstructor<AarfWifiManager> ()
63 .AddAttribute (
"SuccessK",
"Multiplication factor for the success threshold in the AARF algorithm.",
66 MakeDoubleChecker<double> ())
67 .AddAttribute (
"TimerK",
68 "Multiplication factor for the timer threshold in the AARF algorithm.",
71 MakeDoubleChecker<double> ())
72 .AddAttribute (
"MaxSuccessThreshold",
73 "Maximum value of the success threshold in the AARF algorithm.",
76 MakeUintegerChecker<uint32_t> ())
77 .AddAttribute (
"MinTimerThreshold",
78 "The minimum value for the 'timer' threshold in the AARF algorithm.",
81 MakeUintegerChecker<uint32_t> ())
82 .AddAttribute (
"MinSuccessThreshold",
83 "The minimum value for the success threshold in the AARF algorithm.",
86 MakeUintegerChecker<uint32_t> ())
164 if (((station->
m_retry - 1) % 2) == 1)
188 double ctsSnr,
WifiMode ctsMode,
double rtsSnr)
195 double ackSnr,
WifiMode ackMode,
double dataSnr)
uint32_t GetNSupported(const WifiRemoteStation *station) const
Return the number of modes supported by the given station.
uint32_t m_minSuccessThreshold
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by "...
This class mimics the TXVECTOR which is to be passed to the PHY in order to define the parameters whi...
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file...
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
represent a single transmission modeA WifiMode is implemented by a single integer which is used to lo...
virtual void DoReportDataFailed(WifiRemoteStation *station)
It is important to realize that "recovery" mode starts after failure of the first transmission after ...
virtual void DoReportRxOk(WifiRemoteStation *station, double rxSnr, WifiMode txMode)
This method is a pure virtual method that must be implemented by the sub-class.
virtual WifiTxVector DoGetRtsTxVector(WifiRemoteStation *station)
uint32_t GetNumberOfReceiveAntennas(const WifiRemoteStation *station) const
Return the number of receive antenna the station has.
WifiMode GetSupported(const WifiRemoteStation *station, uint32_t i) const
Return whether mode associated with the specified station at the specified index. ...
bool GetStbc(const WifiRemoteStation *station) const
Return whether the given station supports space-time block coding (STBC).
virtual 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.
virtual void DoReportFinalDataFailed(WifiRemoteStation *station)
This method is a pure virtual method that must be implemented by the sub-class.
int64x64_t Min(const int64x64_t &a, const int64x64_t &b)
Minimum.
virtual void DoReportRtsFailed(WifiRemoteStation *station)
This method is a pure virtual method that must be implemented by the sub-class.
Hold an unsigned integer type.
virtual bool IsLowLatency(void) const
int64x64_t Max(const int64x64_t &a, const int64x64_t &b)
Maximum.
uint32_t m_minTimerThreshold
hold a list of per-remote-station state.
uint32_t GetNess(const WifiRemoteStation *station) const
AARF Rate control algorithmThis class implements the AARF rate control algorithm which was initially ...
Every class exported by the ns3 library is enclosed in the ns3 namespace.
bool GetShortGuardInterval(const WifiRemoteStation *station) const
Return whether the given station supports short guard interval.
virtual WifiTxVector DoGetDataTxVector(WifiRemoteStation *station, uint32_t size)
uint32_t m_successThreshold
Ptr< const AttributeAccessor > MakeDoubleAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method...
uint8_t GetDefaultTxPowerLevel(void) const
hold per-remote-station state for AARF Wifi manager.
virtual 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.
uint32_t GetLongRetryCount(const WifiRemoteStation *station) const
Return the long retry limit of the given station.
#define NS_LOG_DEBUG(msg)
Use NS_LOG to output a message of level LOG_DEBUG.
virtual ~AarfWifiManager()
virtual void DoReportFinalRtsFailed(WifiRemoteStation *station)
This method is a pure virtual method that must be implemented by the sub-class.
uint32_t GetNumberOfTransmitAntennas(void)
This class can be used to hold variables of floating point type such as 'double' or 'float'...
virtual WifiRemoteStation * DoCreateStation(void) const
Ptr< const AttributeAccessor > MakeUintegerAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method...
a unique identifier for an interface.
uint32_t m_maxSuccessThreshold
TypeId SetParent(TypeId tid)
hold per-remote-station state.
static TypeId GetTypeId(void)