OLD | NEW |
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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 NS_LOG_INFO (this << GetName ()); | 113 NS_LOG_INFO (this << GetName ()); |
114 ·· | 114 ·· |
115 Config::SetDefault ("ns3::LteSpectrumPhy::CtrlErrorModelEnabled", BooleanValue
(false)); | 115 Config::SetDefault ("ns3::LteSpectrumPhy::CtrlErrorModelEnabled", BooleanValue
(false)); |
116 Config::SetDefault ("ns3::LteSpectrumPhy::DataErrorModelEnabled", BooleanValue
(false)); | 116 Config::SetDefault ("ns3::LteSpectrumPhy::DataErrorModelEnabled", BooleanValue
(false)); |
117 Config::SetDefault ("ns3::LteAmc::AmcModel", EnumValue (LteAmc::PiroEW2010)); | 117 Config::SetDefault ("ns3::LteAmc::AmcModel", EnumValue (LteAmc::PiroEW2010)); |
118 Config::SetDefault ("ns3::LteAmc::Ber", DoubleValue (0.00005)); | 118 Config::SetDefault ("ns3::LteAmc::Ber", DoubleValue (0.00005)); |
119 Ptr<LteHelper> lteHelper = CreateObject<LteHelper> (); | 119 Ptr<LteHelper> lteHelper = CreateObject<LteHelper> (); |
120 lteHelper->SetAttribute ("PathlossModel", StringValue ("ns3::FriisSpectrumProp
agationLossModel")); | 120 lteHelper->SetAttribute ("PathlossModel", StringValue ("ns3::FriisSpectrumProp
agationLossModel")); |
121 lteHelper->SetAttribute ("UseIdealRrc", BooleanValue (false)); | 121 lteHelper->SetAttribute ("UseIdealRrc", BooleanValue (false)); |
122 | 122 |
| 123 //Disable Uplink Power Control |
| 124 Config::SetDefault ("ns3::LteUePhy::EnableUplinkPowerControl", BooleanValue (f
alse)); |
| 125 |
123 // Create Nodes: eNodeB and UE | 126 // Create Nodes: eNodeB and UE |
124 NodeContainer enbNodes; | 127 NodeContainer enbNodes; |
125 NodeContainer ueNodes1; | 128 NodeContainer ueNodes1; |
126 NodeContainer ueNodes2; | 129 NodeContainer ueNodes2; |
127 enbNodes.Create (2); | 130 enbNodes.Create (2); |
128 ueNodes1.Create (1); | 131 ueNodes1.Create (1); |
129 ueNodes2.Create (1); | 132 ueNodes2.Create (1); |
130 NodeContainer allNodes = NodeContainer ( enbNodes, ueNodes1, ueNodes2); | 133 NodeContainer allNodes = NodeContainer ( enbNodes, ueNodes1, ueNodes2); |
131 | 134 |
132 // the topology is the following: | 135 // the topology is the following: |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 void | 244 void |
242 LteInterferenceTestCase::UlScheduling (uint32_t frameNo, uint32_t subframeNo, ui
nt16_t rnti, | 245 LteInterferenceTestCase::UlScheduling (uint32_t frameNo, uint32_t subframeNo, ui
nt16_t rnti, |
243 uint8_t mcs, uint16_t sizeTb) | 246 uint8_t mcs, uint16_t sizeTb) |
244 { | 247 { |
245 // need to allow for RRC connection establishment + SRS transmission | 248 // need to allow for RRC connection establishment + SRS transmission |
246 if (Simulator::Now () > MilliSeconds (50)) | 249 if (Simulator::Now () > MilliSeconds (50)) |
247 { | 250 { |
248 NS_TEST_ASSERT_MSG_EQ ((uint32_t)mcs, (uint32_t)m_ulMcs, "Wrong UL MCS"); | 251 NS_TEST_ASSERT_MSG_EQ ((uint32_t)mcs, (uint32_t)m_ulMcs, "Wrong UL MCS"); |
249 } | 252 } |
250 } | 253 } |
OLD | NEW |