|
A Discrete-Event Network Simulator
|
API
|
Go to the documentation of this file.
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>
81 virtual void DoReportUlCqiInfo ( std::map <uint16_t, std::vector <double> > ulCqiMap );
82 virtual uint8_t
DoGetTpc (uint16_t rnti);
121 double EstimateUlSinr (uint16_t rnti, uint16_t rb, std::map <uint16_t, std::vector <double> > ulCqiMap);
167 std::map< uint16_t, uint8_t >
m_ues;
186 std::map <uint16_t, std::vector<int> >
m_ulCqi;
a unique identifier for an interface.
uint8_t m_dlReuse3SubBandwidth
DL reuse 3 subband bandwidth.
Service Access Point (SAP) offered by the eNodeB RRC instance to the Frequency Reuse algorithm instan...
virtual void DoReportUlCqiInfo(const struct FfMacSchedSapProvider::SchedUlCqiInfoReqParameters ¶ms)
DoReportUlCqiInfo.
virtual void DoReportDlCqiInfo(const struct FfMacSchedSapProvider::SchedDlCqiInfoReqParameters ¶ms)
DoReportDlCqiInfo.
std::vector< bool > m_dlReuse1RbgMap
DL reuse 1 RBG map.
Parameters of the SCHED_DL_CQI_INFO_REQ primitive.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
void SetUplinkConfiguration(uint16_t cellId, uint8_t bandwidth)
Set uplink configuration.
virtual uint16_t DoGetMinContinuousUlBandwidth()
DoGetMinContinuousUlBandwidth in number of RB.
Parameters of the SCHED_UL_CQI_INFO_REQ primitive.
UePosition
UE Position enumeration.
std::vector< bool > m_dlPrimarySegmentRbgMap
DL primary segment RBG map.
std::map< uint16_t, std::vector< bool > > m_dlRbgAvailableforUe
DL RBG available for UE.
static TypeId GetTypeId()
Get the type ID.
virtual void DoRecvLoadInformation(EpcX2Sap::LoadInformationParams params)
DoRecvLoadInformation.
std::vector< bool > m_ulRbgMap
UL RBG Map.
std::vector< bool > m_dlReuse3RbgMap
DL reuse 3 RBG map.
uint8_t m_ulCqiThreshold
UL CQI threshold.
LteFfrRrcSapProvider * m_ffrRrcSapProvider
FFR RRC SAP provider.
virtual void DoInitialize()
Initialize() implementation.
Enhanced Fractional Frequency Reuse algorithm implementation.
uint8_t m_measId
The expected measurement identity.
uint8_t m_ulReuse1SubBandwidth
UL reuse 1 subbandwidth.
uint8_t m_rsrqThreshold
RSRQ threshold.
std::map< uint16_t, uint8_t > m_ues
UEs.
std::vector< bool > m_ulReuse3RbgMap
UL reuse 3 RBG map.
uint8_t m_dlCqiThreshold
DL CQI threshold.
uint8_t m_centerAreaPowerOffset
Center area power offset.
void InitializeDownlinkRbgMaps()
Initialize downlink RBG maps.
int GetCqiFromSpectralEfficiency(double s)
Get CQI from spectral efficiency.
Template for the implementation of the LteFfrRrcSapProvider as a member of an owner class of type C t...
LteFfrEnhancedAlgorithm()
Creates a trivial ffr algorithm instance.
Service Access Point (SAP) offered by the eNodeB RRC instance to the Frequency Reuse algorithm instan...
std::vector< bool > m_ulSecondarySegmentRbgMap
UL secondary segment RBG map.
uint8_t m_edgeAreaTpc
Edge are TPC.
virtual ~LteFfrEnhancedAlgorithm()
virtual bool DoIsDlRbgAvailableForUe(int i, uint16_t rnti)
Implementation of LteFfrSapProvider::IsDlRbgAvailableForUe.
virtual void SetLteFfrRrcSapUser(LteFfrRrcSapUser *s)
Set the "user" part of the LteFfrRrcSap interface that this frequency reuse algorithm instance will i...
Service Access Point (SAP) offered by the Frequency Reuse algorithm instance to the MAC Scheduler ins...
virtual LteFfrSapProvider * GetLteFfrSapProvider()
Export the "provider" part of the LteFfrSap interface.
uint8_t m_dlReuse1SubBandwidth
DL reuse 1 subband bandwidth.
std::vector< bool > m_ulPrimarySegmentRbgMap
UL primary segment RBG map.
std::vector< bool > m_ulReuse1RbgMap
UL reuse 1 RBG map.
std::map< uint16_t, std::vector< bool > > m_ulRbAvailableforUe
UL RB available for UE.
std::map< uint16_t, SbMeasResult_s > m_dlCqi
Map of UE's DL CQI A30 received.
virtual std::vector< bool > DoGetAvailableUlRbg()
Implementation of LteFfrSapProvider::GetAvailableUlRbg.
virtual void Reconfigure()
Automatic FR reconfiguration.
LteFfrRrcSapUser * m_ffrRrcSapUser
FFR RRC SAP user.
virtual LteFfrRrcSapProvider * GetLteFfrRrcSapProvider()
Export the "provider" part of the LteFfrRrcSap interface.
virtual void DoDispose()
Destructor implementation.
double EstimateUlSinr(uint16_t rnti, uint16_t rb, std::map< uint16_t, std::vector< double > > ulCqiMap)
Initialize uplink RBG maps.
uint8_t m_centerAreaTpc
Center area TPC.
void InitializeUplinkRbgMaps()
Initialize uplink RBG maps.
LteFfrSapUser * m_ffrSapUser
FFR SAP user.
The abstract base class of a Frequency Reuse algorithm.
virtual uint8_t DoGetTpc(uint16_t rnti)
DoGetTpc for UE.
std::vector< bool > m_dlSecondarySegmentRbgMap
DL secondary segment RBG map.
std::map< uint16_t, std::vector< int > > m_ulCqi
UL CQI.
virtual void DoReportUeMeas(uint16_t rnti, LteRrcSap::MeasResults measResults)
Implementation of LteFfrRrcSapProvider::ReportUeMeas.
virtual bool DoIsUlRbgAvailableForUe(int i, uint16_t rnti)
Implementation of LteFfrSapProvider::IsUlRbgAvailableForUe.
uint8_t m_dlSubBandOffset
DL subband offset.
Template for the implementation of the LteFfrSapProvider as a member of an owner class of type C to w...
uint8_t m_ulReuse3SubBandwidth
UL reuse 3 subbandwidth.
uint8_t m_ulSubBandOffset
UL subband offset.
LteFfrSapProvider * m_ffrSapProvider
FFR SAP provider.
uint8_t m_edgeAreaPowerOffset
Edge area power offset.
Service Access Point (SAP) offered by the Frequency Reuse algorithm instance to the eNodeB RRC instan...
virtual void SetLteFfrSapUser(LteFfrSapUser *s)
Set the "user" part of the LteFfrSap interface that this frequency reuse algorithm instance will inte...
virtual std::vector< bool > DoGetAvailableDlRbg()
Implementation of LteFfrSapProvider::GetAvailableDlRbg.
std::vector< bool > m_dlRbgMap
DL RBG map.
void SetDownlinkConfiguration(uint16_t cellId, uint8_t bandwidth)
Set downlink configuration.