OLD | NEW |
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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 Time nextTotalTxTime = GetCalcTxTime (nextMode) + m_sifs + m_difs; | 289 Time nextTotalTxTime = GetCalcTxTime (nextMode) + m_sifs + m_difs; |
290 nextCritical = 1 - (nextTotalTxTime.GetSeconds () / totalTxTime.GetSec
onds ()); | 290 nextCritical = 1 - (nextTotalTxTime.GetSeconds () / totalTxTime.GetSec
onds ()); |
291 nextMtl = m_alpha * nextCritical; | 291 nextMtl = m_alpha * nextCritical; |
292 ori = nextMtl / m_beta; | 292 ori = nextMtl / m_beta; |
293 } | 293 } |
294 if (i == 0) | 294 if (i == 0) |
295 { | 295 { |
296 mtl = nextMtl; | 296 mtl = nextMtl; |
297 } | 297 } |
298 WifiRrpaaThresholds th; | 298 WifiRrpaaThresholds th; |
299 th.m_ewnd = ceil (m_tau / totalTxTime.GetSeconds ()); | 299 th.m_ewnd = static_cast<uint32_t> (ceil (m_tau / totalTxTime.GetSeconds ()
)); |
300 th.m_ori = ori; | 300 th.m_ori = ori; |
301 th.m_mtl = mtl; | 301 th.m_mtl = mtl; |
302 station->m_thresholds.push_back (std::make_pair (th, mode)); | 302 station->m_thresholds.push_back (std::make_pair (th, mode)); |
303 mtl = nextMtl; | 303 mtl = nextMtl; |
304 NS_LOG_DEBUG (mode << " " << th.m_ewnd << " " << th.m_mtl << " " << th.m_o
ri); | 304 NS_LOG_DEBUG (mode << " " << th.m_ewnd << " " << th.m_mtl << " " << th.m_o
ri); |
305 } | 305 } |
306 } | 306 } |
307 | 307 |
308 void | 308 void |
309 RrpaaWifiManager::ResetCountersBasic (RrpaaWifiRemoteStation *station) | 309 RrpaaWifiManager::ResetCountersBasic (RrpaaWifiRemoteStation *station) |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
624 RrpaaWifiManager::SetHeSupported (bool enable) | 624 RrpaaWifiManager::SetHeSupported (bool enable) |
625 { | 625 { |
626 //HE is not supported by this algorithm. | 626 //HE is not supported by this algorithm. |
627 if (enable) | 627 if (enable) |
628 { | 628 { |
629 NS_FATAL_ERROR ("WifiRemoteStationManager selected does not support HE rat
es"); | 629 NS_FATAL_ERROR ("WifiRemoteStationManager selected does not support HE rat
es"); |
630 } | 630 } |
631 } | 631 } |
632 | 632 |
633 } // namespace ns3 | 633 } // namespace ns3 |
OLD | NEW |