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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 enbNetDev->GetCcMap()[0]->GetAttribute ("FfMacScheduler", ptrval); | 201 enbNetDev->GetCcMap()[0]->GetAttribute ("FfMacScheduler", ptrval); |
202 Ptr<PfFfMacScheduler> pfsched; | 202 Ptr<PfFfMacScheduler> pfsched; |
203 Ptr<RrFfMacScheduler> rrsched; | 203 Ptr<RrFfMacScheduler> rrsched; |
204 if (m_schedulerType.compare ("ns3::RrFfMacScheduler") == 0) | 204 if (m_schedulerType.compare ("ns3::RrFfMacScheduler") == 0) |
205 { | 205 { |
206 rrsched = ptrval.Get<RrFfMacScheduler> (); | 206 rrsched = ptrval.Get<RrFfMacScheduler> (); |
207 if (rrsched == 0) | 207 if (rrsched == 0) |
208 { | 208 { |
209 NS_FATAL_ERROR ("No RR Scheduler available"); | 209 NS_FATAL_ERROR ("No RR Scheduler available"); |
210 } | 210 } |
211 Simulator::Schedule (Seconds (0.2), &RrFfMacScheduler::TransmissionModeCon
figurationUpdate, rrsched, rnti, 1); | 211 Simulator::Schedule (Seconds (0.2), &RrFfMacScheduler::TransmissionModeCon
figurationUpdate, rrsched, rnti, static_cast<uint8_t>(1)); |
212 Simulator::Schedule (Seconds (0.4), &RrFfMacScheduler::TransmissionModeCon
figurationUpdate, rrsched, rnti, 2); | 212 Simulator::Schedule (Seconds (0.4), &RrFfMacScheduler::TransmissionModeCon
figurationUpdate, rrsched, rnti, static_cast<uint8_t>(2)); |
213 } | 213 } |
214 else if (m_schedulerType.compare ("ns3::PfFfMacScheduler") == 0) | 214 else if (m_schedulerType.compare ("ns3::PfFfMacScheduler") == 0) |
215 { | 215 { |
216 pfsched = ptrval.Get<PfFfMacScheduler> (); | 216 pfsched = ptrval.Get<PfFfMacScheduler> (); |
217 if (pfsched == 0) | 217 if (pfsched == 0) |
218 { | 218 { |
219 NS_FATAL_ERROR ("No Pf Scheduler available"); | 219 NS_FATAL_ERROR ("No Pf Scheduler available"); |
220 } | 220 } |
221 ······ | 221 ······ |
222 Simulator::Schedule (Seconds (0.2), &PfFfMacScheduler::TransmissionModeCon
figurationUpdate, pfsched, rnti, 1); | 222 Simulator::Schedule (Seconds (0.2), &PfFfMacScheduler::TransmissionModeCon
figurationUpdate, pfsched, rnti, static_cast<uint8_t>(1)); |
223 Simulator::Schedule (Seconds (0.4), &PfFfMacScheduler::TransmissionModeCon
figurationUpdate, pfsched, rnti, 2); | 223 Simulator::Schedule (Seconds (0.4), &PfFfMacScheduler::TransmissionModeCon
figurationUpdate, pfsched, rnti, static_cast<uint8_t>(2)); |
224 } | 224 } |
225 else | 225 else |
226 { | 226 { |
227 NS_FATAL_ERROR ("Scheduler not supported by this test"); | 227 NS_FATAL_ERROR ("Scheduler not supported by this test"); |
228 } | 228 } |
229 ···· | 229 ···· |
230 ·· | 230 ·· |
231 Ptr<RadioBearerStatsCalculator> rlcStats = lteHelper->GetRlcStats (); | 231 Ptr<RadioBearerStatsCalculator> rlcStats = lteHelper->GetRlcStats (); |
232 rlcStats->SetAttribute ("EpochDuration", TimeValue (Seconds (0.1))); | 232 rlcStats->SetAttribute ("EpochDuration", TimeValue (Seconds (0.1))); |
233 | 233 |
(...skipping 22 matching lines...) Expand all Loading... |
256 | 256 |
257 } | 257 } |
258 | 258 |
259 | 259 |
260 void | 260 void |
261 LenaMimoTestCase::GetRlcBufferSample (Ptr<RadioBearerStatsCalculator> rlcStats,
uint64_t imsi, uint8_t lcId) | 261 LenaMimoTestCase::GetRlcBufferSample (Ptr<RadioBearerStatsCalculator> rlcStats,
uint64_t imsi, uint8_t lcId) |
262 { | 262 { |
263 m_dlDataRxed.push_back (rlcStats->GetDlRxData (imsi, lcId)); | 263 m_dlDataRxed.push_back (rlcStats->GetDlRxData (imsi, lcId)); |
264 NS_LOG_INFO (Simulator::Now () << "\t get bytes " << m_dlDataRxed.at (m_dlData
Rxed.size () - 1)); | 264 NS_LOG_INFO (Simulator::Now () << "\t get bytes " << m_dlDataRxed.at (m_dlData
Rxed.size () - 1)); |
265 } | 265 } |
OLD | NEW |