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) 2007,2008,2009 INRIA, UDcast | 3 * Copyright (c) 2007,2008,2009 INRIA, UDcast |
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 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 BSLinkManager::GetNewDlChannel (void) | 348 BSLinkManager::GetNewDlChannel (void) |
349 { | 349 { |
350 // code to determine suggested new frequency goes here | 350 // code to determine suggested new frequency goes here |
351 return 100; | 351 return 100; |
352 } | 352 } |
353 | 353 |
354 uint8_t | 354 uint8_t |
355 BSLinkManager::GetSignalQuality (void) | 355 BSLinkManager::GetSignalQuality (void) |
356 { | 356 { |
357 // code to measure signal quality goes here | 357 // code to measure signal quality goes here |
358 uint8_t signalQuality = (uint8_t)m_signalQuality; | 358 uint8_t signalQuality = static_cast<uint8_t> (m_signalQuality); |
359 m_signalQuality++; | 359 m_signalQuality++; |
360 return signalQuality; | 360 return signalQuality; |
361 } | 361 } |
362 | 362 |
363 bool | 363 bool |
364 BSLinkManager::IsRangingAcceptable (void) | 364 BSLinkManager::IsRangingAcceptable (void) |
365 { | 365 { |
366 return GetSignalQuality () > m_signalQualityThreshold; | 366 return GetSignalQuality () > m_signalQualityThreshold; |
367 } | 367 } |
368 | 368 |
369 } // namespace ns3 | 369 } // namespace ns3 |
LEFT | RIGHT |