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) 2010 The Boeing Company | 3 * Copyright (c) 2010 The Boeing Company |
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 13 matching lines...) Expand all Loading... |
24 NS_LOG_COMPONENT_DEFINE ("NistErrorRateModel"); | 24 NS_LOG_COMPONENT_DEFINE ("NistErrorRateModel"); |
25 | 25 |
26 namespace ns3 { | 26 namespace ns3 { |
27 | 27 |
28 NS_OBJECT_ENSURE_REGISTERED (NistErrorRateModel); | 28 NS_OBJECT_ENSURE_REGISTERED (NistErrorRateModel); |
29 | 29 |
30 TypeId· | 30 TypeId· |
31 NistErrorRateModel::GetTypeId (void) | 31 NistErrorRateModel::GetTypeId (void) |
32 { | 32 { |
33 static TypeId tid = TypeId ("ns3::NistErrorRateModel") | 33 static TypeId tid = TypeId ("ns3::NistErrorRateModel") |
34 .SetParent<YansErrorRateModel> () | 34 .SetParent<ErrorRateModel> () |
35 .AddConstructor<NistErrorRateModel> () | 35 .AddConstructor<NistErrorRateModel> () |
36 ; | 36 ; |
37 return tid; | 37 return tid; |
38 } | 38 } |
39 | 39 |
40 NistErrorRateModel::NistErrorRateModel () | 40 NistErrorRateModel::NistErrorRateModel () |
41 {} | 41 {} |
42 | 42 |
43 double· | 43 double· |
44 NistErrorRateModel::GetBpskBer (double snr) const | 44 NistErrorRateModel::GetBpskBer (double snr) const |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 return DsssErrorRateModel::GetDsssDqpskCck5_5SuccessRate (snr,nbits); | 258 return DsssErrorRateModel::GetDsssDqpskCck5_5SuccessRate (snr,nbits); |
259 } | 259 } |
260 else if (mode == WifiPhy::Get11mbb ()) | 260 else if (mode == WifiPhy::Get11mbb ()) |
261 { | 261 { |
262 return DsssErrorRateModel::GetDsssDqpskCck11SuccessRate (snr,nbits); | 262 return DsssErrorRateModel::GetDsssDqpskCck11SuccessRate (snr,nbits); |
263 } | 263 } |
264 return 0; | 264 return 0; |
265 } | 265 } |
266 | 266 |
267 } // namespace ns3 | 267 } // namespace ns3 |
LEFT | RIGHT |