22 #ifndef LTE_FFR_ENHANCED_ALGORITHM_H
23 #define LTE_FFR_ENHANCED_ALGORITHM_H
25 #include <ns3/lte-ffr-algorithm.h>
26 #include <ns3/lte-ffr-sap.h>
27 #include <ns3/lte-ffr-rrc-sap.h>
28 #include <ns3/lte-rrc-sap.h>
77 virtual void DoReportUlCqiInfo ( std::map <uint16_t, std::vector <double> > ulCqiMap );
78 virtual uint8_t
DoGetTpc (uint16_t rnti);
91 double EstimateUlSinr (uint16_t rnti, uint16_t rb, std::map <uint16_t, std::vector <double> > ulCqiMap);
130 std::map< uint16_t, uint8_t >
m_ues;
149 std::map <uint16_t, std::vector<int> >
m_ulCqi;
Service Access Point (SAP) offered by the Frequency Reuse algorithm instance to the eNodeB RRC instan...
virtual uint8_t DoGetMinContinuousUlBandwidth()
DoGetMinContinuousUlBandwidth in number of RB.
uint8_t m_ulReuse1SubBandwidth
Template for the implementation of the LteFfrRrcSapProvider as a member of an owner class of type C t...
virtual LteFfrRrcSapProvider * GetLteFfrRrcSapProvider()
Export the "provider" part of the LteFfrRrcSap interface.
Service Access Point (SAP) offered by the eNodeB RRC instance to the Frequency Reuse algorithm instan...
std::map< uint16_t, std::vector< bool > > m_dlRbgAvailableforUe
virtual std::vector< bool > DoGetAvailableUlRbg()
Implementation of LteFfrSapProvider::GetAvailableUlRbg.
std::vector< bool > m_ulSecondarySegmentRbgMap
LteFfrRrcSapProvider * m_ffrRrcSapProvider
std::vector< bool > m_ulReuse3RbgMap
LteFfrEnhancedAlgorithm()
Creates a trivial ffr algorithm instance.
virtual bool DoIsDlRbgAvailableForUe(int i, uint16_t rnti)
Implementation of LteFfrSapProvider::IsDlRbgAvailableForUe.
std::vector< bool > m_ulReuse1RbgMap
virtual void SetLteFfrSapUser(LteFfrSapUser *s)
Set the "user" part of the LteFfrSap interface that this frequency reuse algorithm instance will inte...
virtual void DoReportDlCqiInfo(const struct FfMacSchedSapProvider::SchedDlCqiInfoReqParameters ¶ms)
DoReportDlCqiInfo.
virtual void DoDispose()
This method is called by Object::Dispose or by the object's destructor, whichever comes first...
Template for the implementation of the LteFfrSapProvider as a member of an owner class of type C to w...
virtual uint8_t DoGetTpc(uint16_t rnti)
DoGetTpc for UE.
std::map< uint16_t, SbMeasResult_s > m_dlCqi
uint8_t m_dlReuse1SubBandwidth
Service Access Point (SAP) offered by the Frequency Reuse algorithm instance to the MAC Scheduler ins...
LteFfrSapUser * m_ffrSapUser
uint8_t m_dlReuse3SubBandwidth
virtual void DoReportUeMeas(uint16_t rnti, LteRrcSap::MeasResults measResults)
Implementation of LteFfrRrcSapProvider::ReportUeMeas.
std::vector< bool > m_dlPrimarySegmentRbgMap
double EstimateUlSinr(uint16_t rnti, uint16_t rb, std::map< uint16_t, std::vector< double > > ulCqiMap)
std::vector< bool > m_dlReuse1RbgMap
virtual void DoReportUlCqiInfo(const struct FfMacSchedSapProvider::SchedUlCqiInfoReqParameters ¶ms)
DoReportUlCqiInfo.
LteFfrSapProvider * m_ffrSapProvider
virtual void DoInitialize()
This method is called only once by Object::Initialize.
virtual std::vector< bool > DoGetAvailableDlRbg()
Implementation of LteFfrSapProvider::GetAvailableDlRbg.
The abstract base class of a Frequency Reuse algorithm.
std::map< uint16_t, std::vector< int > > m_ulCqi
uint8_t m_dlSubBandOffset
std::vector< bool > m_dlSecondarySegmentRbgMap
uint8_t m_edgeAreaPowerOffset
uint8_t m_ulReuse3SubBandwidth
void InitializeDownlinkRbgMaps()
Enhanced Fractional Frequency Reuse algorithm implementation.
Service Access Point (SAP) offered by the eNodeB RRC instance to the Frequency Reuse algorithm instan...
virtual void DoRecvLoadInformation(EpcX2Sap::LoadInformationParams params)
DoRecvLoadInformation.
uint8_t m_ulSubBandOffset
Parameters of the SCHED_DL_CQI_INFO_REQ primitive.
int GetCqiFromSpectralEfficiency(double s)
virtual void SetLteFfrRrcSapUser(LteFfrRrcSapUser *s)
Set the "user" part of the LteFfrRrcSap interface that this frequency reuse algorithm instance will i...
void SetUplinkConfiguration(uint16_t cellId, uint8_t bandwidth)
static TypeId GetTypeId()
Parameters of the SCHED_UL_CQI_INFO_REQ primitive.
std::map< uint16_t, uint8_t > m_ues
virtual LteFfrSapProvider * GetLteFfrSapProvider()
Export the "provider" part of the LteFfrSap interface.
virtual bool DoIsUlRbgAvailableForUe(int i, uint16_t rnti)
Implementation of LteFfrSapProvider::IsUlRbgAvailableForUe.
void SetDownlinkConfiguration(uint16_t cellId, uint8_t bandwidth)
std::vector< bool > m_ulPrimarySegmentRbgMap
LteFfrRrcSapUser * m_ffrRrcSapUser
a unique identifier for an interface.
std::vector< bool > m_dlRbgMap
std::vector< bool > m_ulRbgMap
std::vector< bool > m_dlReuse3RbgMap
virtual void Reconfigure()
Automatic FR reconfiguration.
std::map< uint16_t, std::vector< bool > > m_ulRbAvailableforUe
virtual ~LteFfrEnhancedAlgorithm()
uint8_t m_centerAreaPowerOffset
void InitializeUplinkRbgMaps()