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) 2011-2013 Centre Tecnologic de Telecomunicacions de Catalunya (
CTTC) | 3 * Copyright (c) 2011-2013 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 void | 159 void |
160 LenaDataPhyErrorModelTestCase::DoRun (void) | 160 LenaDataPhyErrorModelTestCase::DoRun (void) |
161 { | 161 { |
162 ·· | 162 ·· |
163 double ber = 0.03; | 163 double ber = 0.03; |
164 Config::SetDefault ("ns3::LteAmc::Ber", DoubleValue (ber)); | 164 Config::SetDefault ("ns3::LteAmc::Ber", DoubleValue (ber)); |
165 Config::SetDefault ("ns3::LteAmc::AmcModel", EnumValue (LteAmc::PiroEW2010)); | 165 Config::SetDefault ("ns3::LteAmc::AmcModel", EnumValue (LteAmc::PiroEW2010)); |
166 Config::SetDefault ("ns3::LteSpectrumPhy::CtrlErrorModelEnabled", BooleanValue
(false)); | 166 Config::SetDefault ("ns3::LteSpectrumPhy::CtrlErrorModelEnabled", BooleanValue
(false)); |
167 Config::SetDefault ("ns3::LteSpectrumPhy::DataErrorModelEnabled", BooleanValue
(true)); | 167 Config::SetDefault ("ns3::LteSpectrumPhy::DataErrorModelEnabled", BooleanValue
(true)); |
168 Config::SetDefault ("ns3::RrFfMacScheduler::HarqEnabled", BooleanValue (false)
); | 168 Config::SetDefault ("ns3::RrFfMacScheduler::HarqEnabled", BooleanValue (false)
); |
169 Config::SetGlobal("RngRun", UintegerValue(m_rngRun)); | 169 Config::SetGlobal("RngRun", UintegerValue (m_rngRun)); |
170 | 170 |
171 //Disable Uplink Power Control | 171 //Disable Uplink Power Control |
172 Config::SetDefault ("ns3::LteUePhy::EnableUplinkPowerControl", BooleanValue (f
alse)); | 172 Config::SetDefault ("ns3::LteUePhy::EnableUplinkPowerControl", BooleanValue (f
alse)); |
173 | 173 |
174 /* | 174 /* |
175 * Initialize Simulation Scenario: 1 eNB and m_nUser UEs | 175 * Initialize Simulation Scenario: 1 eNB and m_nUser UEs |
176 */ | 176 */ |
177 | 177 |
178 int64_t stream = 1; | 178 int64_t stream = 1; |
179 Ptr<LteHelper> lena = CreateObject<LteHelper> (); | 179 Ptr<LteHelper> lena = CreateObject<LteHelper> (); |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 void | 315 void |
316 LenaDlCtrlPhyErrorModelTestCase::DoRun (void) | 316 LenaDlCtrlPhyErrorModelTestCase::DoRun (void) |
317 { | 317 { |
318 ·· | 318 ·· |
319 double ber = 0.03; | 319 double ber = 0.03; |
320 Config::SetDefault ("ns3::LteAmc::Ber", DoubleValue (ber)); | 320 Config::SetDefault ("ns3::LteAmc::Ber", DoubleValue (ber)); |
321 Config::SetDefault ("ns3::LteAmc::AmcModel", EnumValue (LteAmc::PiroEW2010)); | 321 Config::SetDefault ("ns3::LteAmc::AmcModel", EnumValue (LteAmc::PiroEW2010)); |
322 Config::SetDefault ("ns3::LteSpectrumPhy::CtrlErrorModelEnabled", BooleanValue
(true)); | 322 Config::SetDefault ("ns3::LteSpectrumPhy::CtrlErrorModelEnabled", BooleanValue
(true)); |
323 Config::SetDefault ("ns3::LteSpectrumPhy::DataErrorModelEnabled", BooleanValue
(false)); | 323 Config::SetDefault ("ns3::LteSpectrumPhy::DataErrorModelEnabled", BooleanValue
(false)); |
324 Config::SetDefault ("ns3::RrFfMacScheduler::HarqEnabled", BooleanValue (false)
); | 324 Config::SetDefault ("ns3::RrFfMacScheduler::HarqEnabled", BooleanValue (false)
); |
325 Config::SetGlobal ("RngRun", UintegerValue(m_rngRun)); | 325 Config::SetGlobal ("RngRun", UintegerValue (m_rngRun)); |
326 | 326 |
327 //Disable Uplink Power Control | 327 //Disable Uplink Power Control |
328 Config::SetDefault ("ns3::LteUePhy::EnableUplinkPowerControl", BooleanValue (f
alse)); | 328 Config::SetDefault ("ns3::LteUePhy::EnableUplinkPowerControl", BooleanValue (f
alse)); |
329 | 329 |
330 /* | 330 /* |
331 * Initialize Simulation Scenario: 1 eNB and m_nUser UEs | 331 * Initialize Simulation Scenario: 1 eNB and m_nUser UEs |
332 */ | 332 */ |
333 | 333 |
334 int64_t stream = 1; | 334 int64_t stream = 1; |
335 Ptr<LteHelper> lena = CreateObject<LteHelper> (); | 335 Ptr<LteHelper> lena = CreateObject<LteHelper> (); |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
431 " too different DL TX packets reported"); | 431 " too different DL TX packets reported"); |
432 | 432 |
433 // this is the main test condition: check that the RX packets are within t
he expected range | 433 // this is the main test condition: check that the RX packets are within t
he expected range |
434 NS_TEST_ASSERT_MSG_EQ_TOL (dlRxPackets, expectedDlRxPackets, m_toleranceRx
Packets, | 434 NS_TEST_ASSERT_MSG_EQ_TOL (dlRxPackets, expectedDlRxPackets, m_toleranceRx
Packets, |
435 "too different DL RX packets reported"); | 435 "too different DL RX packets reported"); |
436 | 436 |
437 } | 437 } |
438 ·· | 438 ·· |
439 Simulator::Destroy (); | 439 Simulator::Destroy (); |
440 } | 440 } |
LEFT | RIGHT |