23 #include "ns3/string.h"
24 #include "ns3/assert.h"
29 #define Min(a,b) ((a < b) ? a : b)
39 static TypeId tid =
TypeId (
"ns3::ConstantRateWifiManager")
41 .AddConstructor<ConstantRateWifiManager> ()
42 .AddAttribute (
"DataMode",
"The transmission mode to use for every data packet transmission",
45 MakeWifiModeChecker ())
46 .AddAttribute (
"ControlMode",
"The transmission mode to use for every control packet transmission.",
49 MakeWifiModeChecker ())
91 double ctsSnr,
WifiMode ctsMode,
double rtsSnr)
97 double ackSnr,
WifiMode ackMode,
double dataSnr)
#define NS_LOG_FUNCTION(parameters)
This class mimics the TXVECTOR which is to be passed to the PHY in order to define the parameters whi...
hold variables of type string
NS_OBJECT_ENSURE_REGISTERED(NullMessageSimulatorImpl)
virtual WifiRemoteStation * DoCreateStation(void) const
represent a single transmission modeA WifiMode is implemented by a single integer which is used to lo...
uint32_t GetNumberOfReceiveAntennas(const WifiRemoteStation *station) const
Return the number of receive antenna the station has.
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.
bool GetStbc(const WifiRemoteStation *station) const
Return whether the given station supports space-time block coding (STBC).
virtual void DoReportRtsFailed(WifiRemoteStation *station)
This method is a pure virtual method that must be implemented by the sub-class.
virtual bool IsLowLatency(void) const
int64x64_t Min(const int64x64_t &a, const int64x64_t &b)
virtual void DoReportFinalRtsFailed(WifiRemoteStation *station)
This method is a pure virtual method that must be implemented by the sub-class.
hold a list of per-remote-station state.
virtual WifiTxVector DoGetDataTxVector(WifiRemoteStation *station, uint32_t size)
NS_LOG_COMPONENT_DEFINE("ConstantRateWifiManager")
WifiMode m_ctlMode
Wifi mode for request control frames.
ConstantRateWifiManager()
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.
bool GetShortGuardInterval(const WifiRemoteStation *station) const
Return whether the given station supports short guard interval.
WifiMode m_dataMode
Wifi mode for unicast DATA frames.
uint8_t GetDefaultTxPowerLevel(void) const
uint32_t GetLongRetryCount(const WifiRemoteStation *station) const
Return the long retry limit of the given station.
virtual WifiTxVector DoGetRtsTxVector(WifiRemoteStation *station)
virtual ~ConstantRateWifiManager()
uint32_t GetShortRetryCount(const WifiRemoteStation *station) const
Return the short retry limit of the given station.
uint32_t GetNumberOfTransmitAntennas(void)
virtual void DoReportFinalDataFailed(WifiRemoteStation *station)
This method is a pure virtual method that must be implemented by the sub-class.
static TypeId GetTypeId(void)
virtual void DoReportRxOk(WifiRemoteStation *station, double rxSnr, WifiMode txMode)
This method is a pure virtual method that must be implemented by the sub-class.
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
virtual void DoReportDataFailed(WifiRemoteStation *station)
This method is a pure virtual method that must be implemented by the sub-class.
hold per-remote-station state.