LEFT | RIGHT |
(no file at all) | |
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) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC) | 3 * Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC) |
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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 double hm = 1; | 117 double hm = 1; |
118 double hb = 30; | 118 double hb = 30; |
119 // double freq = 869e6; // E_UTRA BAND #5 see table 5.5-1 of 36.101 | 119 // double freq = 869e6; // E_UTRA BAND #5 see table 5.5-1 of 36.101 |
120 Ptr<BuildingsMobilityModel> mm1 = enbNodes.Get (0)->GetObject<BuildingsMobilit
yModel> (); | 120 Ptr<BuildingsMobilityModel> mm1 = enbNodes.Get (0)->GetObject<BuildingsMobilit
yModel> (); |
121 mm1->SetPosition (Vector (0.0, 0.0, hb)); | 121 mm1->SetPosition (Vector (0.0, 0.0, hb)); |
122 ·· | 122 ·· |
123 Ptr<BuildingsMobilityModel> mm2 = ueNodes.Get (0)->GetObject<BuildingsMobility
Model> (); | 123 Ptr<BuildingsMobilityModel> mm2 = ueNodes.Get (0)->GetObject<BuildingsMobility
Model> (); |
124 mm2->SetPosition (Vector (distance, 0.0, hm)); | 124 mm2->SetPosition (Vector (distance, 0.0, hm)); |
125 ·· | 125 ·· |
126 AddTestCase (new LteFadingTestCase (mm1, mm2, 137.93, "OH Urban Large city"),
TestCase::QUICK); | 126 AddTestCase (new LteFadingTestCase (mm1, mm2, 137.93, "OH Urban Large city"),
TestCase::QUICK); |
127 ···· | |
128 ·· | |
129 } | 127 } |
130 | 128 |
131 static LteFadingTestSuite lteFadingTestSuite; | 129 static LteFadingTestSuite lteFadingTestSuite; |
132 | 130 |
133 | 131 |
134 /** | 132 /** |
135 * TestCase | 133 * TestCase |
136 */ | 134 */ |
137 | 135 |
138 LteFadingTestCase::LteFadingTestCase (Ptr<BuildingsMobilityModel> m1, Ptr<Buildi
ngsMobilityModel> m2, double refValue, std::string name) | 136 LteFadingTestCase::LteFadingTestCase (Ptr<BuildingsMobilityModel> m1, Ptr<Buildi
ngsMobilityModel> m2, double refValue, std::string name) |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 */ | 285 */ |
288 Ptr<SpectrumValue> inPsd1 = Create<SpectrumValue> (sm); | 286 Ptr<SpectrumValue> inPsd1 = Create<SpectrumValue> (sm); |
289 (*inPsd1)[0] = 1.; | 287 (*inPsd1)[0] = 1.; |
290 (*inPsd1)[1] = 1.; | 288 (*inPsd1)[1] = 1.; |
291 Ptr<SpectrumValue> outPsd1 = Create<SpectrumValue> (sm); | 289 Ptr<SpectrumValue> outPsd1 = Create<SpectrumValue> (sm); |
292 outPsd1 = m_fadingModule->CalcRxPowerSpectralDensity (inPsd1, m_node1, m_node2
); | 290 outPsd1 = m_fadingModule->CalcRxPowerSpectralDensity (inPsd1, m_node1, m_node2
); |
293 (*outPsd1)[0] = (10 * std::log10 (180000*(*outPsd1)[0])) - (10 * std::log10 (1
80000*(*inPsd1)[0])); | 291 (*outPsd1)[0] = (10 * std::log10 (180000*(*outPsd1)[0])) - (10 * std::log10 (1
80000*(*inPsd1)[0])); |
294 (*outPsd1)[1] = (10 * std::log10 (180000*(*outPsd1)[1])) - (10 * std::log10 (1
80000*(*inPsd1)[1])); | 292 (*outPsd1)[1] = (10 * std::log10 (180000*(*outPsd1)[1])) - (10 * std::log10 (1
80000*(*inPsd1)[1])); |
295 m_fadingSamples.push_back ((*outPsd1)); | 293 m_fadingSamples.push_back ((*outPsd1)); |
296 } | 294 } |
LEFT | RIGHT |