LEFT | RIGHT |
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2017 Universidad de la República - Uruguay | 3 * Copyright (c) 2017 Universidad de la República - Uruguay |
4 * | 4 * |
5 * This program is free software; you can redistribute it and/or modify | 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 | 6 * it under the terms of the GNU General Public License version 2 as |
7 * published by the Free Software Foundation; | 7 * published by the Free Software Foundation; |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 * http://ocw.cs.pub.ro/courses/_media/isrm/articole/rrate_adapt_mobicom06.pdf | 46 * http://ocw.cs.pub.ro/courses/_media/isrm/articole/rrate_adapt_mobicom06.pdf |
47 * | 47 * |
48 */ | 48 */ |
49 | 49 |
50 /** | 50 /** |
51 * For each rate there is a Opportunistic Rate Increase threshold, | 51 * For each rate there is a Opportunistic Rate Increase threshold, |
52 * a Maximum Tolerable Loss threshold and an Evaluation Window. | 52 * a Maximum Tolerable Loss threshold and an Evaluation Window. |
53 */ | 53 */ |
54 struct Thresholds | 54 struct Thresholds |
55 { | 55 { |
56 double m_ori; | 56 double m_ori; //!< The Oportunistic Rate Increase threshold. |
57 double m_mtl; | 57 double m_mtl; //!< The Maximum Tolerable Loss threshold. |
58 uint32_t m_ewnd; | 58 uint32_t m_ewnd; //!< The Estimation Window size. |
59 }; | 59 }; |
60 | 60 |
61 /** | 61 /** |
62 * List of thresholds for each mode. | 62 * List of thresholds for each mode. |
63 */ | 63 */ |
64 typedef std::vector<std::pair<Thresholds,WifiMode> > RrpaaThresholdsTable; | 64 typedef std::vector<std::pair<Thresholds,WifiMode> > RrpaaThresholdsTable; |
65 | 65 |
66 /** | 66 /** |
67 * List of probabilities. | 67 * List of probabilities. |
68 */ | 68 */ |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 uint32_t m_nPower; //!< Number of power levels. | 223 uint32_t m_nPower; //!< Number of power levels. |
224 | 224 |
225 /** | 225 /** |
226 * The trace source fired when the transmission power change | 226 * The trace source fired when the transmission power change |
227 */ | 227 */ |
228 TracedCallback<double, double, Mac48Address> m_powerChange; | 228 TracedCallback<double, double, Mac48Address> m_powerChange; |
229 /** | 229 /** |
230 * The trace source fired when the transmission rate change | 230 * The trace source fired when the transmission rate change |
231 */ | 231 */ |
232 TracedCallback<DataRate, DataRate, Mac48Address> m_rateChange; | 232 TracedCallback<DataRate, DataRate, Mac48Address> m_rateChange; |
233 | 233 ·· |
234 //Provides uniform random variables. | 234 Ptr<UniformRandomVariable> m_uniformRandomVariable; //!< Provides uniform ra
ndom variables for probabilistic changes. |
235 Ptr<UniformRandomVariable> m_uniformRandomVariable; | |
236 }; | 235 }; |
237 | 236 |
238 } //namespace ns3 | 237 } //namespace ns3 |
239 | 238 |
240 #endif /* RRPAA__WIFI_MANAGER_H */ | 239 #endif /* RRPAA__WIFI_MANAGER_H */ |
LEFT | RIGHT |