23 #include "ns3/uinteger.h"
24 #include "ns3/boolean.h"
42 m_needReconfiguration (true)
57 .AddAttribute (
"FrCellTypeId",
58 "Downlink FR cell type ID for automatic configuration,"
59 "default value is 0 and it means that user needs to configure FR algorithm manually,"
60 "if it is set to 1,2 or 3 FR algorithm will be configured automatically",
63 MakeUintegerChecker<uint8_t> ())
64 .AddAttribute (
"EnabledInUplink",
65 "If FR algorithm will also work in Uplink, default value true",
68 MakeBooleanChecker ())
154 for (
int i = 0; i < 4; i++)
uint8_t GetFrCellTypeId() const
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by "...
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register the class in the ns-3 factory.
virtual void DoDispose()
This method is called by Object::Dispose or by the object's destructor, whichever comes first...
uint8_t m_ulBandwidth
uplink bandwidth in RBs
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
uint8_t GetUlBandwidth() const
#define NS_FATAL_ERROR(msg)
fatal error handling
virtual void DoSetCellId(uint16_t cellId)
SetCellId.
virtual void DoSetBandwidth(uint8_t ulBandwidth, uint8_t dlBandwidth)
Implementation of LteFfrRrcSapProvider::SetBandwidth.
static const int Type0AllocationRbg[4]
Hold an unsigned integer type.
bool m_enabledInUplink
If true FR algorithm will also work in Uplink.
bool m_needReconfiguration
If true FR algorithm will be reconfigured.
uint8_t m_dlBandwidth
downlink bandwidth in RBs
virtual ~LteFfrAlgorithm()
void SetFrCellTypeId(uint8_t cellTypeId)
static TypeId GetTypeId()
uint8_t GetDlBandwidth() const
void SetDlBandwidth(uint8_t bw)
uint8_t m_frCellTypeId
FFR cell type ID for automatic configuration.
void SetUlBandwidth(uint8_t bw)
int GetRbgSize(int dlbandwidth)
Get RBG size for DL Bandwidth according to table 7.1.6.1-1 of 36.213.
a base class which provides memory management and object aggregation
a unique identifier for an interface.
TypeId SetParent(TypeId tid)