A Discrete-Event Network Simulator
API
lte-fr-soft-algorithm.cc
Go to the documentation of this file.
1 /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
2 /*
3  * Copyright (c) 2014 Piotr Gawlowicz
4  *
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
7  * published by the Free Software Foundation;
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  *
18  * Author: Piotr Gawlowicz <gawlowicz.p@gmail.com>
19  *
20  */
21 
22 #include "lte-fr-soft-algorithm.h"
23 #include <ns3/log.h>
24 #include "ns3/boolean.h"
25 
26 namespace ns3 {
27 
28 NS_LOG_COMPONENT_DEFINE ("LteFrSoftAlgorithm");
29 
30 NS_OBJECT_ENSURE_REGISTERED (LteFrSoftAlgorithm);
31 
34 {
35  uint8_t cellId;
36  uint8_t dlBandwidth;
40  { 1, 15, 0, 4},
41  { 2, 15, 4, 4},
42  { 3, 15, 8, 6},
43  { 1, 25, 0, 8},
44  { 2, 25, 8, 8},
45  { 3, 25, 16, 9},
46  { 1, 50, 0, 16},
47  { 2, 50, 16, 16},
48  { 3, 50, 32, 18},
49  { 1, 75, 0, 24},
50  { 2, 75, 24, 24},
51  { 3, 75, 48, 27},
52  { 1, 100, 0, 32},
53  { 2, 100, 32, 32},
54  { 3, 100, 64, 36}
55 };
56 
59 {
60  uint8_t cellId;
61  uint8_t ulBandwidth;
65  { 1, 15, 0, 5},
66  { 2, 15, 5, 5},
67  { 3, 15, 10, 5},
68  { 1, 25, 0, 8},
69  { 2, 25, 8, 8},
70  { 3, 25, 16, 9},
71  { 1, 50, 0, 16},
72  { 2, 50, 16, 16},
73  { 3, 50, 32, 18},
74  { 1, 75, 0, 24},
75  { 2, 75, 24, 24},
76  { 3, 75, 48, 27},
77  { 1, 100, 0, 32},
78  { 2, 100, 32, 32},
79  { 3, 100, 64, 36}
80 };
81 
83 const uint16_t NUM_DOWNLINK_CONFS (sizeof (g_frSoftDownlinkDefaultConfiguration) / sizeof (FrSoftDownlinkDefaultConfiguration));
85 const uint16_t NUM_UPLINK_CONFS (sizeof (g_frSoftUplinkDefaultConfiguration) / sizeof (FrSoftUplinkDefaultConfiguration));
86 
87 
89  : m_ffrSapUser (0),
90  m_ffrRrcSapUser (0),
91  m_dlEdgeSubBandOffset (0),
92  m_dlEdgeSubBandwidth (0),
93  m_ulEdgeSubBandOffset (0),
94  m_ulEdgeSubBandwidth (0),
95  m_measId (0)
96 {
97  NS_LOG_FUNCTION (this);
100 }
101 
102 
104 {
105  NS_LOG_FUNCTION (this);
106 }
107 
108 
109 void
111 {
112  NS_LOG_FUNCTION (this);
113  delete m_ffrSapProvider;
114  delete m_ffrRrcSapProvider;
115 }
116 
117 
118 TypeId
120 {
121  static TypeId tid = TypeId ("ns3::LteFrSoftAlgorithm")
123  .SetGroupName("Lte")
124  .AddConstructor<LteFrSoftAlgorithm> ()
125  .AddAttribute ("UlEdgeSubBandOffset",
126  "Uplink Edge SubBand Offset in number of Resource Block Groups",
127  UintegerValue (0),
129  MakeUintegerChecker<uint8_t> ())
130  .AddAttribute ("UlEdgeSubBandwidth",
131  "Uplink Edge SubBandwidth Configuration in number of Resource Block Groups",
132  UintegerValue (0),
134  MakeUintegerChecker<uint8_t> ())
135  .AddAttribute ("DlEdgeSubBandOffset",
136  "Downlink Edge SubBand Offset in number of Resource Block Groups",
137  UintegerValue (0),
139  MakeUintegerChecker<uint8_t> ())
140  .AddAttribute ("DlEdgeSubBandwidth",
141  "Downlink Edge SubBandwidth Configuration in number of Resource Block Groups",
142  UintegerValue (0),
144  MakeUintegerChecker<uint8_t> ())
145  .AddAttribute ("AllowCenterUeUseEdgeSubBand",
146  "If true center UEs can receive on Edge SubBand RBGs",
147  BooleanValue (true),
150  .AddAttribute ("RsrqThreshold",
151  "If the RSRQ of is worse than this threshold, UE should be served in Edge sub-band",
152  UintegerValue (20),
154  MakeUintegerChecker<uint8_t> ())
155  .AddAttribute ("CenterPowerOffset",
156  "PdschConfigDedicated::Pa value for Edge Sub-band, default value dB0",
157  UintegerValue (5),
159  MakeUintegerChecker<uint8_t> ())
160  .AddAttribute ("EdgePowerOffset",
161  "PdschConfigDedicated::Pa value for Edge Sub-band, default value dB0",
162  UintegerValue (5),
164  MakeUintegerChecker<uint8_t> ())
165  .AddAttribute ("CenterAreaTpc",
166  "TPC value which will be set in DL-DCI for UEs in center area"
167  "Absolute mode is used, default value 1 is mapped to -1 according to"
168  "TS36.213 Table 5.1.1.1-2",
169  UintegerValue (1),
171  MakeUintegerChecker<uint8_t> ())
172  .AddAttribute ("EdgeAreaTpc",
173  "TPC value which will be set in DL-DCI for UEs in edge area"
174  "Absolute mode is used, default value 1 is mapped to -1 according to"
175  "TS36.213 Table 5.1.1.1-2",
176  UintegerValue (1),
178  MakeUintegerChecker<uint8_t> ())
179  ;
180  return tid;
181 }
182 
183 
184 void
186 {
187  NS_LOG_FUNCTION (this << s);
188  m_ffrSapUser = s;
189 }
190 
191 
194 {
195  NS_LOG_FUNCTION (this);
196  return m_ffrSapProvider;
197 }
198 
199 void
201 {
202  NS_LOG_FUNCTION (this << s);
203  m_ffrRrcSapUser = s;
204 }
205 
206 
209 {
210  NS_LOG_FUNCTION (this);
211  return m_ffrRrcSapProvider;
212 }
213 
214 
215 void
217 {
218  NS_LOG_FUNCTION (this);
220 
221  NS_ASSERT_MSG (m_dlBandwidth > 14,"DlBandwidth must be at least 15 to use FFR algorithms");
222  NS_ASSERT_MSG (m_ulBandwidth > 14,"UlBandwidth must be at least 15 to use FFR algorithms");
223 
224  if (m_frCellTypeId != 0)
225  {
228  }
229 
230  NS_LOG_LOGIC (this << " requesting Event A1 measurements"
231  << " (threshold = 0" << ")");
232  LteRrcSap::ReportConfigEutra reportConfig;
235  reportConfig.threshold1.range = 0;
239 }
240 
241 void
243 {
244  NS_LOG_FUNCTION (this);
245  if (m_frCellTypeId != 0)
246  {
249  }
252  m_needReconfiguration = false;
253 }
254 
255 void
256 LteFrSoftAlgorithm::SetDownlinkConfiguration (uint16_t cellId, uint8_t bandwidth)
257 {
258  NS_LOG_FUNCTION (this);
259  for (uint16_t i = 0; i < NUM_DOWNLINK_CONFS; ++i)
260  {
261  if ((g_frSoftDownlinkDefaultConfiguration[i].cellId == cellId)
263  {
266  }
267  }
268 }
269 
270 void
271 LteFrSoftAlgorithm::SetUplinkConfiguration (uint16_t cellId, uint8_t bandwidth)
272 {
273  NS_LOG_FUNCTION (this);
274  for (uint16_t i = 0; i < NUM_UPLINK_CONFS; ++i)
275  {
276  if ((g_frSoftUplinkDefaultConfiguration[i].cellId == cellId)
278  {
281  }
282  }
283 }
284 
285 void
287 {
288  m_dlRbgMap.clear ();
289  m_dlEdgeRbgMap.clear ();
290 
291  int rbgSize = GetRbgSize (m_dlBandwidth);
292  m_dlRbgMap.resize (m_dlBandwidth / rbgSize, false);
293  m_dlEdgeRbgMap.resize (m_dlBandwidth / rbgSize, false);
294 
295  NS_ASSERT_MSG (m_dlEdgeSubBandOffset <= m_dlBandwidth,"DlEdgeSubBandOffset higher than DlBandwidth");
296  NS_ASSERT_MSG (m_dlEdgeSubBandwidth <= m_dlBandwidth,"DlEdgeSubBandwidth higher than DlBandwidth");
298  "(DlEdgeSubBandOffset+DlEdgeSubBandwidth) higher than DlBandwidth");
299 
300  for (uint8_t i = m_dlEdgeSubBandOffset / rbgSize;
301  i < (m_dlEdgeSubBandOffset + m_dlEdgeSubBandwidth) / rbgSize; i++)
302  {
303  m_dlEdgeRbgMap[i] = true;
304  }
305 }
306 
307 void
309 {
310  m_ulRbgMap.clear ();
311  m_ulEdgeRbgMap.clear ();
312 
313  m_ulRbgMap.resize (m_ulBandwidth, false);
314  m_ulEdgeRbgMap.resize (m_ulBandwidth, false);
315 
316  NS_ASSERT_MSG (m_ulEdgeSubBandOffset <= m_dlBandwidth,"UlEdgeSubBandOffset higher than DlBandwidth");
317  NS_ASSERT_MSG (m_ulEdgeSubBandwidth <= m_dlBandwidth,"UlEdgeSubBandwidth higher than DlBandwidth");
319  "(UlEdgeSubBandOffset+UlEdgeSubBandwidth) higher than DlBandwidth");
320 
322  {
323  m_ulEdgeRbgMap[i] = true;
324  }
325 }
326 
327 std::vector <bool>
329 {
330  NS_LOG_FUNCTION (this);
331 
333  {
334  Reconfigure ();
335  }
336 
337  if (m_dlRbgMap.empty ())
338  {
340  }
341 
342  return m_dlRbgMap;
343 }
344 
345 bool
347 {
348  NS_LOG_FUNCTION (this);
349 
350  bool edgeRbg = m_dlEdgeRbgMap[rbgId];
351 
352  std::map< uint16_t, uint8_t >::iterator it = m_ues.find (rnti);
353  if (it == m_ues.end ())
354  {
355  m_ues.insert (std::pair< uint16_t, uint8_t > (rnti, AreaUnset));
356  return !edgeRbg;
357  }
358 
359  bool edgeUe = false;
360  if (it->second == CellEdge )
361  {
362  edgeUe = true;
363  }
364 
365  if (!edgeUe && m_isEdgeSubBandForCenterUe)
366  {
367  return true;
368  }
369 
370  return (edgeRbg && edgeUe) || (!edgeRbg && !edgeUe);
371 }
372 
373 std::vector <bool>
375 {
376  NS_LOG_FUNCTION (this);
377 
378  if (m_ulRbgMap.empty ())
379  {
381  }
382 
383  return m_ulRbgMap;
384 }
385 
386 bool
388 {
389  NS_LOG_FUNCTION (this);
390 
391  if (!m_enabledInUplink)
392  {
393  return true;
394  }
395 
396  bool edgeRbg = m_ulEdgeRbgMap[rbgId];
397 
398  std::map< uint16_t, uint8_t >::iterator it = m_ues.find (rnti);
399  if (it == m_ues.end ())
400  {
401  m_ues.insert (std::pair< uint16_t, uint8_t > (rnti, AreaUnset));
402  return !edgeRbg;
403  }
404 
405  bool edgeUe = false;
406  if (it->second == CellEdge )
407  {
408  edgeUe = true;
409  }
410 
411  if (!edgeUe && m_isEdgeSubBandForCenterUe)
412  {
413  return true;
414  }
415 
416  return (edgeRbg && edgeUe) || (!edgeRbg && !edgeUe);
417 }
418 
419 void
421 {
422  NS_LOG_FUNCTION (this);
423  NS_LOG_WARN ("Method should not be called, because it is empty");
424 }
425 
426 void
428 {
429  NS_LOG_FUNCTION (this);
430  NS_LOG_WARN ("Method should not be called, because it is empty");
431 }
432 
433 void
434 LteFrSoftAlgorithm::DoReportUlCqiInfo (std::map <uint16_t, std::vector <double> > ulCqiMap)
435 {
436  NS_LOG_FUNCTION (this);
437  NS_LOG_WARN ("Method should not be called, because it is empty");
438 }
439 
440 uint8_t
442 {
443  NS_LOG_FUNCTION (this);
444 
445  if (!m_enabledInUplink)
446  {
447  return 1; // 1 is mapped to 0 for Accumulated mode, and to -1 in Absolute mode TS36.213 Table 5.1.1.1-2
448  }
449 
450  //TS36.213 Table 5.1.1.1-2
451  // TPC | Accumulated Mode | Absolute Mode
452  //------------------------------------------------
453  // 0 | -1 | -4
454  // 1 | 0 | -1
455  // 2 | 1 | 1
456  // 3 | 3 | 4
457  //------------------------------------------------
458  // here Absolute mode is used
459 
460  std::map< uint16_t, uint8_t >::iterator it = m_ues.find (rnti);
461  if (it == m_ues.end ())
462  {
463  return 1;
464  }
465 
466  if (it->second == CellEdge )
467  {
468  return m_edgeAreaTpc;
469  }
470  else if (it->second == CellCenter )
471  {
472  return m_centerAreaTpc;
473  }
474 
475  return 1;
476 }
477 
478 uint8_t
480 {
481  NS_LOG_FUNCTION (this);
482 
483  uint8_t minContinuousUlBandwidth = m_ulBandwidth;
484 
485  if (!m_enabledInUplink)
486  {
487  return minContinuousUlBandwidth;
488  }
489 
490  uint8_t leftBandwidth = m_ulEdgeSubBandOffset;
491  uint8_t centerBandwidth = m_ulEdgeSubBandwidth;
492  uint8_t rightBandwidth = m_ulBandwidth - m_ulEdgeSubBandwidth - m_ulEdgeSubBandOffset;
493 
494  minContinuousUlBandwidth =
495  ((leftBandwidth > 0 ) && (leftBandwidth < minContinuousUlBandwidth)) ? leftBandwidth : minContinuousUlBandwidth;
496 
497  minContinuousUlBandwidth =
498  ((centerBandwidth > 0 ) && (centerBandwidth < minContinuousUlBandwidth)) ? centerBandwidth : minContinuousUlBandwidth;
499 
500  minContinuousUlBandwidth =
501  ((rightBandwidth > 0 ) && (rightBandwidth < minContinuousUlBandwidth)) ? rightBandwidth : minContinuousUlBandwidth;
502 
503  NS_LOG_INFO ("minContinuousUlBandwidth: " << (int)minContinuousUlBandwidth);
504 
505  return minContinuousUlBandwidth;
506 }
507 
508 void
510  LteRrcSap::MeasResults measResults)
511 {
512  NS_LOG_FUNCTION (this << rnti << (uint16_t) measResults.measId);
513  NS_LOG_INFO ("RNTI :" << rnti << " MeasId: " << (uint16_t) measResults.measId
514  << " RSRP: " << (uint16_t)measResults.rsrpResult
515  << " RSRQ: " << (uint16_t)measResults.rsrqResult);
516 
517  if (measResults.measId != m_measId)
518  {
519  NS_LOG_WARN ("Ignoring measId " << (uint16_t) measResults.measId);
520  }
521  else
522  {
523  std::map< uint16_t, uint8_t >::iterator it = m_ues.find (rnti);
524  if (it == m_ues.end ())
525  {
526  m_ues.insert (std::pair< uint16_t, uint8_t > (rnti, AreaUnset));
527  }
528  it = m_ues.find (rnti);
529 
530  if (measResults.rsrqResult < m_edgeSubBandThreshold)
531  {
532  if (it->second != CellEdge)
533  {
534  NS_LOG_INFO ("UE RNTI: " << rnti << " will be served in Edge sub-band");
535  it->second = CellEdge;
536 
537  LteRrcSap::PdschConfigDedicated pdschConfigDedicated;
538  pdschConfigDedicated.pa = m_edgePowerOffset;
539  m_ffrRrcSapUser->SetPdschConfigDedicated (rnti, pdschConfigDedicated);
540  }
541  }
542  else
543  {
544  if (it->second != CellCenter)
545  {
546  NS_LOG_INFO ("UE RNTI: " << rnti << " will be served in Center sub-band");
547  it->second = CellCenter;
548 
549  LteRrcSap::PdschConfigDedicated pdschConfigDedicated;
550  pdschConfigDedicated.pa = m_centerPowerOffset;
551  m_ffrRrcSapUser->SetPdschConfigDedicated (rnti, pdschConfigDedicated);
552  }
553  }
554  }
555 }
556 
557 void
559 {
560  NS_LOG_FUNCTION (this);
561  NS_LOG_WARN ("Method should not be called, because it is empty");
562 }
563 
564 } // end of namespace ns3
virtual void SetLteFfrRrcSapUser(LteFfrRrcSapUser *s)
Set the "user" part of the LteFfrRrcSap interface that this frequency reuse algorithm instance will i...
enum ns3::LteRrcSap::ThresholdEutra::@63 choice
Threshold enumeration.
Service Access Point (SAP) offered by the Frequency Reuse algorithm instance to the eNodeB RRC instan...
virtual void DoInitialize(void)
Initialize() implementation.
Definition: object.cc:353
Template for the implementation of the LteFfrRrcSapProvider as a member of an owner class of type C t...
Service Access Point (SAP) offered by the eNodeB RRC instance to the Frequency Reuse algorithm instan...
Definition: lte-ffr-sap.h:138
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by "...
static const struct ns3::FrSoftUplinkDefaultConfiguration g_frSoftUplinkDefaultConfiguration[]
soft uplink default configuration
virtual void SetLteFfrSapUser(LteFfrSapUser *s)
Set the "user" part of the LteFfrSap interface that this frequency reuse algorithm instance will inte...
AttributeValue implementation for Boolean.
Definition: boolean.h:36
void SetUplinkConfiguration(uint16_t cellId, uint8_t bandwidth)
Set uplink configuration.
virtual void DoReportDlCqiInfo(const struct FfMacSchedSapProvider::SchedDlCqiInfoReqParameters &params)
DoReportDlCqiInfo.
void InitializeDownlinkRbgMaps()
Initialize downlink RBG maps.
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Definition: object-base.h:45
void InitializeUplinkRbgMaps()
Initialize uplink RBG maps.
NS_ASSERT_MSG(false, "Ipv4AddressGenerator::MaskToIndex(): Impossible")
void SetDownlinkConfiguration(uint16_t cellId, uint8_t bandwidth)
Set downlink configuration.
uint8_t m_measId
The expected measurement identity.
Ptr< const AttributeAccessor > MakeBooleanAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method...
Definition: boolean.h:84
virtual LteFfrRrcSapProvider * GetLteFfrRrcSapProvider()
Export the "provider" part of the LteFfrRrcSap interface.
ThresholdEutra threshold1
Threshold for event A1, A2, A4, and A5.
Definition: lte-rrc-sap.h:374
Specifies criteria for triggering of an E-UTRA measurement reporting event.
Definition: lte-rrc-sap.h:354
LteFrSoftAlgorithm()
Creates a trivial ffr algorithm instance.
uint8_t m_ulBandwidth
uplink bandwidth in RBs
virtual uint8_t DoGetTpc(uint16_t rnti)
DoGetTpc for UE.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Definition: log.h:202
#define NS_LOG_INFO(msg)
Use NS_LOG to output a message of level LOG_INFO.
Definition: log.h:278
enum ns3::LteRrcSap::ReportConfigEutra::@66 triggerQuantity
Trigger type enumeration.
LteFfrSapUser * m_ffrSapUser
FFR SAP user.
Reference Signal Received Quality.
Definition: lte-rrc-sap.h:400
uint8_t m_ulEdgeSubBandwidth
UL edge subbandwidth.
uint8_t m_centerAreaTpc
center area tpc
LteFfrRrcSapProvider * m_ffrRrcSapProvider
FFR RRC SAP provider.
virtual uint8_t AddUeMeasReportConfigForFfr(LteRrcSap::ReportConfigEutra reportConfig)=0
Request a certain reporting configuration to be fulfilled by the UEs attached to the eNodeB entity...
virtual void SetPdschConfigDedicated(uint16_t rnti, LteRrcSap::PdschConfigDedicated pdschConfigDedicated)=0
Instruct the eNodeB RRC entity to perform RrcConnectionReconfiguration to inform UE about new PdschCo...
uint8_t rsrpResult
RSRP result.
Definition: lte-rrc-sap.h:674
std::vector< bool > m_dlRbgMap
DL RBG map.
virtual std::vector< bool > DoGetAvailableUlRbg()
Implementation of LteFfrSapProvider::GetAvailableUlRbg.
Template for the implementation of the LteFfrSapProvider as a member of an owner class of type C to w...
Definition: lte-ffr-sap.h:152
LteFfrSapProvider * m_ffrSapProvider
FFR SAP provider.
LteFfrRrcSapUser * m_ffrRrcSapUser
FFR RRC SAP user.
MeasResults structure.
Definition: lte-rrc-sap.h:671
static TypeId GetTypeId()
Get the type ID.
Service Access Point (SAP) offered by the Frequency Reuse algorithm instance to the MAC Scheduler ins...
Definition: lte-ffr-sap.h:39
Hold an unsigned integer type.
Definition: uinteger.h:44
bool m_enabledInUplink
If true FR algorithm will also work in Uplink.
bool m_needReconfiguration
If true FR algorithm will be reconfigured.
virtual void Reconfigure()
Automatic FR reconfiguration.
virtual LteFfrSapProvider * GetLteFfrSapProvider()
Export the "provider" part of the LteFfrSap interface.
uint8_t m_dlBandwidth
downlink bandwidth in RBs
enum ns3::LteRrcSap::ReportConfigEutra::@68 reportInterval
Report interval enumeration.
enum ns3::LteRrcSap::ReportConfigEutra::@65 eventId
Event enumeration.
std::vector< bool > m_dlEdgeRbgMap
DL edge RBG map.
uint8_t m_edgePowerOffset
edge power offset
Every class exported by the ns3 library is enclosed in the ns3 namespace.
The abstract base class of a Frequency Reuse algorithm.
Ptr< const AttributeChecker > MakeBooleanChecker(void)
Definition: boolean.cc:121
static const struct ns3::FrSoftDownlinkDefaultConfiguration g_frSoftDownlinkDefaultConfiguration[]
soft downlink default configuration
std::map< uint16_t, uint8_t > m_ues
UEs.
uint8_t range
Value range used in RSRP/RSRQ threshold.
Definition: lte-rrc-sap.h:350
uint8_t m_edgeAreaTpc
edge area tpc
virtual bool DoIsUlRbgAvailableForUe(int i, uint16_t rnti)
Implementation of LteFfrSapProvider::IsUlRbgAvailableForUe.
Service Access Point (SAP) offered by the eNodeB RRC instance to the Frequency Reuse algorithm instan...
virtual void DoReportUeMeas(uint16_t rnti, LteRrcSap::MeasResults measResults)
Implementation of LteFfrRrcSapProvider::ReportUeMeas.
NS_LOG_LOGIC("Net device "<< nd<< " is not bridged")
uint8_t measId
measure ID
Definition: lte-rrc-sap.h:673
Parameters of the SCHED_DL_CQI_INFO_REQ primitive.
uint8_t m_frCellTypeId
FFR cell type ID for automatic configuration.
Parameters of the SCHED_UL_CQI_INFO_REQ primitive.
#define NS_LOG_WARN(msg)
Use NS_LOG to output a message of level LOG_WARN.
Definition: log.h:262
std::vector< bool > m_ulEdgeRbgMap
UL edge RBG map.
virtual void DoInitialize()
Initialize() implementation.
int GetRbgSize(int dlbandwidth)
Get RBG size for DL Bandwidth according to table 7.1.6.1-1 of 36.213.
Parameters of the LOAD INFORMATION message.
Definition: epc-x2-sap.h:303
uint8_t m_dlEdgeSubBandOffset
DL edge subband offset.
virtual std::vector< bool > DoGetAvailableDlRbg()
Implementation of LteFfrSapProvider::GetAvailableDlRbg.
Event A1: Serving becomes better than absolute threshold.
Definition: lte-rrc-sap.h:366
RSRQ is used for the threshold.
Definition: lte-rrc-sap.h:348
bool m_isEdgeSubBandForCenterUe
is edge subband for center UE?
virtual void DoDispose()
Destructor implementation.
const uint16_t NUM_DOWNLINK_CONFS(sizeof(g_ffrEnhancedDownlinkDefaultConfiguration)/sizeof(FfrEnhancedDownlinkDefaultConfiguration))
uint8_t rsrqResult
RSRQ result.
Definition: lte-rrc-sap.h:675
uint8_t m_centerPowerOffset
center power offset
uint8_t m_edgeSubBandThreshold
Edge subband threshold.
PdschConfigDedicated structure.
Definition: lte-rrc-sap.h:154
virtual uint8_t DoGetMinContinuousUlBandwidth()
DoGetMinContinuousUlBandwidth in number of RB.
Soft Frequency Reuse algorithm implementation.
Ptr< const AttributeAccessor > MakeUintegerAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method...
Definition: uinteger.h:45
a unique identifier for an interface.
Definition: type-id.h:58
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Definition: type-id.cc:915
virtual void DoReportUlCqiInfo(const struct FfMacSchedSapProvider::SchedUlCqiInfoReqParameters &params)
DoReportUlCqiInfo.
const uint16_t NUM_UPLINK_CONFS(sizeof(g_ffrEnhancedUplinkDefaultConfiguration)/sizeof(FfrEnhancedUplinkDefaultConfiguration))
uint8_t m_dlEdgeSubBandwidth
DL edge subbandwidth.
std::vector< bool > m_ulRbgMap
UL RBG map.
uint8_t m_ulEdgeSubBandOffset
UL edge subband offset.
virtual void DoRecvLoadInformation(EpcX2Sap::LoadInformationParams params)
DoRecvLoadInformation.
virtual bool DoIsDlRbgAvailableForUe(int i, uint16_t rnti)
Implementation of LteFfrSapProvider::IsDlRbgAvailableForUe.