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 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 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 Ptr<Ipv4StaticRouting> remoteHostStaticRouting = ipv4RoutingHelper.GetStaticRo
uting (remoteHost->GetObject<Ipv4> ()); | 303 Ptr<Ipv4StaticRouting> remoteHostStaticRouting = ipv4RoutingHelper.GetStaticRo
uting (remoteHost->GetObject<Ipv4> ()); |
304 remoteHostStaticRouting->AddNetworkRouteTo (Ipv4Address ("7.0.0.0"), Ipv4Mask
("255.0.0.0"), 1); | 304 remoteHostStaticRouting->AddNetworkRouteTo (Ipv4Address ("7.0.0.0"), Ipv4Mask
("255.0.0.0"), 1); |
305 | 305 |
306 //Config::SetDefault ("ns3::LteAmc::AmcModel", EnumValue (LteAmc::PiroEW2010))
; | 306 //Config::SetDefault ("ns3::LteAmc::AmcModel", EnumValue (LteAmc::PiroEW2010))
; |
307 //Config::SetDefault ("ns3::LteAmc::Ber", DoubleValue (0.00005)); | 307 //Config::SetDefault ("ns3::LteAmc::Ber", DoubleValue (0.00005)); |
308 //Config::SetDefault ("ns3::LteSpectrumPhy::CtrlErrorModelEnabled", BooleanVal
ue (false)); | 308 //Config::SetDefault ("ns3::LteSpectrumPhy::CtrlErrorModelEnabled", BooleanVal
ue (false)); |
309 //Config::SetDefault ("ns3::LteSpectrumPhy::DataErrorModelEnabled", BooleanVal
ue (false)); | 309 //Config::SetDefault ("ns3::LteSpectrumPhy::DataErrorModelEnabled", BooleanVal
ue (false)); |
310 | 310 |
311 //Config::SetDefault ("ns3::LteEnbRrc::EpsBearerToRlcMapping", EnumValue (LteH
elper::RLC_UM_ALWAYS)); | 311 //Config::SetDefault ("ns3::LteEnbRrc::EpsBearerToRlcMapping", EnumValue (LteH
elper::RLC_UM_ALWAYS)); |
312 | 312 |
313 // LogComponentDisableAll (LOG_LEVEL_ALL); | 313 #if 0 |
314 //LogComponentEnable ("LenaTestFdTbfqFfMacScheduler", LOG_LEVEL_ALL); | 314 LogComponentDisableAll (LOG_LEVEL_ALL); |
315 | 315 LogComponentEnable ("LenaTestFdTbfqFfMacScheduler", LOG_LEVEL_ALL); |
| 316 #endif |
| 317 |
316 lteHelper->SetAttribute ("PathlossModel", StringValue ("ns3::FriisSpectrumProp
agationLossModel")); | 318 lteHelper->SetAttribute ("PathlossModel", StringValue ("ns3::FriisSpectrumProp
agationLossModel")); |
317 | 319 |
318 // Create Nodes: eNodeB and UE | 320 // Create Nodes: eNodeB and UE |
319 NodeContainer enbNodes; | 321 NodeContainer enbNodes; |
320 NodeContainer ueNodes; | 322 NodeContainer ueNodes; |
321 enbNodes.Create (1); | 323 enbNodes.Create (1); |
322 ueNodes.Create (m_nUser); | 324 ueNodes.Create (m_nUser); |
323 | 325 |
324 // Install Mobility Model | 326 // Install Mobility Model |
325 MobilityHelper mobility; | 327 MobilityHelper mobility; |
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
696 } | 698 } |
697 | 699 |
698 for (int i = 0; i < m_nUser; i++) | 700 for (int i = 0; i < m_nUser; i++) |
699 { | 701 { |
700 NS_TEST_ASSERT_MSG_EQ_TOL ((double)dlDataRxed.at (i) / statsDuration, m_es
tThrFdTbfqDl.at (i), m_estThrFdTbfqDl.at (i) * tolerance, " Unfair Throughput!")
; | 702 NS_TEST_ASSERT_MSG_EQ_TOL ((double)dlDataRxed.at (i) / statsDuration, m_es
tThrFdTbfqDl.at (i), m_estThrFdTbfqDl.at (i) * tolerance, " Unfair Throughput!")
; |
701 } | 703 } |
702 | 704 |
703 Simulator::Destroy (); | 705 Simulator::Destroy (); |
704 | 706 |
705 } | 707 } |
LEFT | RIGHT |