--- a/src/wifi/model/amrr-wifi-manager.h Mon Dec 09 09:28:17 2013 -0800
+++ b/src/wifi/model/amrr-wifi-manager.h Tue Dec 10 10:48:51 2013 -0500
@@ -60,15 +60,78 @@
virtual WifiTxVector DoGetRtsTxVector (WifiRemoteStation *station);
virtual bool IsLowLatency (void) const;
- void UpdateRetry (AmrrWifiRemoteStation *station);
+ //void UpdateRetry (AmrrWifiRemoteStation *station);
+ /**
+ * Update the mode used to send to the given station.
+ *
+ * \param station
+ */
void UpdateMode (AmrrWifiRemoteStation *station);
+ /**
+ * Reset transmission statistics of the given station.
+ *
+ * \param station
+ */
void ResetCnt (AmrrWifiRemoteStation *station);
+ /**
+ * Increase the transmission rate to the given station.
+ *
+ * \param station
+ */
void IncreaseRate (AmrrWifiRemoteStation *station);
+ /**
+ * Decrease the transmission rate to the given station.
+ *
+ * \param station
+ */
void DecreaseRate (AmrrWifiRemoteStation *station);
+ /**
+ * Check if the current rate for the given station is the
+ * minimum rate.
+ *
+ * \param station
+ * \return true if the current rate is the minimum rate,
+ * false otherwise
+ */
bool IsMinRate (AmrrWifiRemoteStation *station) const;
+ /**
+ * Check if the current rate for the given station is the
+ * maximum rate.
+ *
+ * \param station
+ * \return true if the current rate is the maximum rate,
+ * false otherwise
+ */
bool IsMaxRate (AmrrWifiRemoteStation *station) const;
+ /**
+ * Check if the number of retransmission and transmission error
+ * is less than the number of successful transmission (times ratio).
+ *
+ * \param station
+ * \return true if the number of retransmission and transmission error
+ * is less than the number of successful transmission
+ * (times ratio), false otherwise
+ */
bool IsSuccess (AmrrWifiRemoteStation *station) const;
+ /**
+ * Check if the number of retransmission and transmission error
+ * is greater than the number of successful transmission (times ratio).
+ *
+ * \param station
+ * \return true if the number of retransmission and transmission error
+ * is less than the number of successful transmission
+ * (times ratio), false otherwise
+ */
bool IsFailure (AmrrWifiRemoteStation *station) const;
+ /**
+ * Check if the number of retransmission, transmission error,
+ * and successful transmission are greater than 10.
+ *
+ * \param station
+ * \return true if the number of retransmission, transmission error,
+ * and successful transmission are greater than 10,
+ * false otherwise
+ */
bool IsEnough (AmrrWifiRemoteStation *station) const;
Time m_updatePeriod;