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) 2014 Piotr Gawlowicz | 3 * Copyright (c) 2014 Piotr Gawlowicz |
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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 } | 269 } |
270 InitializeDownlinkRbgMaps (); | 270 InitializeDownlinkRbgMaps (); |
271 InitializeUplinkRbgMaps (); | 271 InitializeUplinkRbgMaps (); |
272 m_needReconfiguration = false; | 272 m_needReconfiguration = false; |
273 } | 273 } |
274 | 274 |
275 void | 275 void |
276 LteFfrEnhancedAlgorithm::SetDownlinkConfiguration (uint16_t cellId, uint8_t band
width) | 276 LteFfrEnhancedAlgorithm::SetDownlinkConfiguration (uint16_t cellId, uint8_t band
width) |
277 { | 277 { |
278 NS_LOG_FUNCTION (this); | 278 NS_LOG_FUNCTION (this); |
279 NS_UNUSED(bandwidth); | 279 NS_UNUSED (bandwidth); |
280 for (uint16_t i = 0; i < NUM_DOWNLINK_CONFS; ++i) | 280 for (uint16_t i = 0; i < NUM_DOWNLINK_CONFS; ++i) |
281 { | 281 { |
282 if ((g_ffrEnhancedDownlinkDefaultConfiguration[i].cellId == cellId) | 282 if ((g_ffrEnhancedDownlinkDefaultConfiguration[i].cellId == cellId) |
283 && g_ffrEnhancedDownlinkDefaultConfiguration[i].dlBandwidth == m_dlBan
dwidth) | 283 && g_ffrEnhancedDownlinkDefaultConfiguration[i].dlBandwidth == m_dlBan
dwidth) |
284 { | 284 { |
285 m_dlSubBandOffset = g_ffrEnhancedDownlinkDefaultConfiguration[i].dlSub
BandOffset; | 285 m_dlSubBandOffset = g_ffrEnhancedDownlinkDefaultConfiguration[i].dlSub
BandOffset; |
286 m_dlReuse3SubBandwidth = g_ffrEnhancedDownlinkDefaultConfiguration[i].
dlReuse3SubBandwidth; | 286 m_dlReuse3SubBandwidth = g_ffrEnhancedDownlinkDefaultConfiguration[i].
dlReuse3SubBandwidth; |
287 m_dlReuse1SubBandwidth = g_ffrEnhancedDownlinkDefaultConfiguration[i].
dlReuse1SubBandwidth; | 287 m_dlReuse1SubBandwidth = g_ffrEnhancedDownlinkDefaultConfiguration[i].
dlReuse1SubBandwidth; |
288 } | 288 } |
289 } | 289 } |
290 } | 290 } |
291 | 291 |
292 void | 292 void |
293 LteFfrEnhancedAlgorithm::SetUplinkConfiguration (uint16_t cellId, uint8_t bandwi
dth) | 293 LteFfrEnhancedAlgorithm::SetUplinkConfiguration (uint16_t cellId, uint8_t bandwi
dth) |
294 { | 294 { |
295 NS_LOG_FUNCTION (this); | 295 NS_LOG_FUNCTION (this); |
296 NS_UNUSED(bandwidth); | 296 NS_UNUSED (bandwidth); |
297 for (uint16_t i = 0; i < NUM_UPLINK_CONFS; ++i) | 297 for (uint16_t i = 0; i < NUM_UPLINK_CONFS; ++i) |
298 { | 298 { |
299 if ((g_ffrEnhancedUplinkDefaultConfiguration[i].cellId == cellId) | 299 if ((g_ffrEnhancedUplinkDefaultConfiguration[i].cellId == cellId) |
300 && g_ffrEnhancedUplinkDefaultConfiguration[i].ulBandwidth == m_ulBandw
idth) | 300 && g_ffrEnhancedUplinkDefaultConfiguration[i].ulBandwidth == m_ulBandw
idth) |
301 { | 301 { |
302 m_ulSubBandOffset = g_ffrEnhancedUplinkDefaultConfiguration[i].ulSubBa
ndOffset; | 302 m_ulSubBandOffset = g_ffrEnhancedUplinkDefaultConfiguration[i].ulSubBa
ndOffset; |
303 m_ulReuse3SubBandwidth = g_ffrEnhancedUplinkDefaultConfiguration[i].ul
Reuse3SubBandwidth; | 303 m_ulReuse3SubBandwidth = g_ffrEnhancedUplinkDefaultConfiguration[i].ul
Reuse3SubBandwidth; |
304 m_ulReuse1SubBandwidth = g_ffrEnhancedUplinkDefaultConfiguration[i].ul
Reuse1SubBandwidth; | 304 m_ulReuse1SubBandwidth = g_ffrEnhancedUplinkDefaultConfiguration[i].ul
Reuse1SubBandwidth; |
305 } | 305 } |
306 } | 306 } |
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
906 } | 906 } |
907 } | 907 } |
908 void | 908 void |
909 LteFfrEnhancedAlgorithm::DoRecvLoadInformation (EpcX2Sap::LoadInformationParams
params) | 909 LteFfrEnhancedAlgorithm::DoRecvLoadInformation (EpcX2Sap::LoadInformationParams
params) |
910 { | 910 { |
911 NS_LOG_FUNCTION (this); | 911 NS_LOG_FUNCTION (this); |
912 NS_LOG_WARN ("Method should not be called, because it is empty"); | 912 NS_LOG_WARN ("Method should not be called, because it is empty"); |
913 } | 913 } |
914 | 914 |
915 } // end of namespace ns3 | 915 } // end of namespace ns3 |
LEFT | RIGHT |