A Discrete-Event Network Simulator
API
ns3::FdMtFfMacScheduler Class Reference

Implements the SCHED SAP and CSCHED SAP for a Frequency Domain Maximize Throughput scheduler. More...

#include "fdmt-ff-mac-scheduler.h"

+ Inheritance diagram for ns3::FdMtFfMacScheduler:
+ Collaboration diagram for ns3::FdMtFfMacScheduler:

Public Member Functions

 FdMtFfMacScheduler ()
 Constructor. More...
 
 ~FdMtFfMacScheduler () override
 Destructor. More...
 
void DoDispose () override
 Destructor implementation. More...
 
FfMacCschedSapProviderGetFfMacCschedSapProvider () override
 
FfMacSchedSapProviderGetFfMacSchedSapProvider () override
 
LteFfrSapUserGetLteFfrSapUser () override
 
void SetFfMacCschedSapUser (FfMacCschedSapUser *s) override
 set the user part of the FfMacCschedSap that this Scheduler will interact with. More...
 
void SetFfMacSchedSapUser (FfMacSchedSapUser *s) override
 set the user part of the FfMacSchedSap that this Scheduler will interact with. More...
 
void SetLteFfrSapProvider (LteFfrSapProvider *s) override
 Set the Provider part of the LteFfrSap that this Scheduler will interact with. More...
 
void TransmissionModeConfigurationUpdate (uint16_t rnti, uint8_t txMode)
 Transmission mode configuration update. More...
 
- Public Member Functions inherited from ns3::FfMacScheduler
 FfMacScheduler ()
 constructor More...
 
 ~FfMacScheduler () override
 destructor More...
 
void DoDispose () override
 Destructor implementation. More...
 
- Public Member Functions inherited from ns3::Object
 Object ()
 Constructor. More...
 
 ~Object () override
 Destructor. More...
 
void AggregateObject (Ptr< Object > other)
 Aggregate two Objects together. More...
 
void Dispose ()
 Dispose of this Object. More...
 
AggregateIterator GetAggregateIterator () const
 Get an iterator to the Objects aggregated to this one. More...
 
TypeId GetInstanceTypeId () const override
 Get the most derived TypeId for this Object. More...
 
template<typename T >
Ptr< T > GetObject () const
 Get a pointer to the requested aggregated Object. More...
 
template<>
Ptr< ObjectGetObject () const
 Specialization of () for objects of type ns3::Object. More...
 
template<typename T >
Ptr< T > GetObject (TypeId tid) const
 Get a pointer to the requested aggregated Object by TypeId. More...
 
template<>
Ptr< ObjectGetObject (TypeId tid) const
 Specialization of (TypeId tid) for objects of type ns3::Object. More...
 
void Initialize ()
 Invoke DoInitialize on all Objects aggregated to this one. More...
 
bool IsInitialized () const
 Check if the object has been initialized. More...
 
- Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter >
 SimpleRefCount ()
 Default constructor. More...
 
 SimpleRefCount (const SimpleRefCount &o[[maybe_unused]])
 Copy constructor. More...
 
uint32_t GetReferenceCount () const
 Get the reference count of the object. More...
 
SimpleRefCountoperator= (const SimpleRefCount &o[[maybe_unused]])
 Assignment operator. More...
 
void Ref () const
 Increment the reference count. More...
 
void Unref () const
 Decrement the reference count. More...
 
- Public Member Functions inherited from ns3::ObjectBase
virtual ~ObjectBase ()
 Virtual destructor. More...
 
void GetAttribute (std::string name, AttributeValue &value) const
 Get the value of an attribute, raising fatal errors if unsuccessful. More...
 
bool GetAttributeFailSafe (std::string name, AttributeValue &value) const
 Get the value of an attribute without raising errors. More...
 
void SetAttribute (std::string name, const AttributeValue &value)
 Set a single attribute, raising fatal errors if unsuccessful. More...
 
bool SetAttributeFailSafe (std::string name, const AttributeValue &value)
 Set a single attribute without raising errors. More...
 
bool TraceConnect (std::string name, std::string context, const CallbackBase &cb)
 Connect a TraceSource to a Callback with a context. More...
 
bool TraceConnectWithoutContext (std::string name, const CallbackBase &cb)
 Connect a TraceSource to a Callback without a context. More...
 
bool TraceDisconnect (std::string name, std::string context, const CallbackBase &cb)
 Disconnect from a TraceSource a Callback previously connected with a context. More...
 
bool TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb)
 Disconnect from a TraceSource a Callback previously connected without a context. More...
 

Static Public Member Functions

static TypeId GetTypeId ()
 Get the type ID. More...
 
- Static Public Member Functions inherited from ns3::FfMacScheduler
static TypeId GetTypeId ()
 Get the type ID. More...
 
- Static Public Member Functions inherited from ns3::Object
static TypeId GetTypeId ()
 Register this type. More...
 
- Static Public Member Functions inherited from ns3::ObjectBase
static TypeId GetTypeId ()
 Get the type ID. More...
 

Private Member Functions

void DoCschedCellConfigReq (const FfMacCschedSapProvider::CschedCellConfigReqParameters &params)
 Csched cell config request function. More...
 
void DoCschedLcConfigReq (const FfMacCschedSapProvider::CschedLcConfigReqParameters &params)
 CSched LC config request function. More...
 
void DoCschedLcReleaseReq (const FfMacCschedSapProvider::CschedLcReleaseReqParameters &params)
 CSched LC release request function. More...
 
void DoCschedUeConfigReq (const FfMacCschedSapProvider::CschedUeConfigReqParameters &params)
 CSched UE config request function. More...
 
void DoCschedUeReleaseReq (const FfMacCschedSapProvider::CschedUeReleaseReqParameters &params)
 CSched UE release request function. More...
 
void DoSchedDlCqiInfoReq (const FfMacSchedSapProvider::SchedDlCqiInfoReqParameters &params)
 Sched DL CQI info request function. More...
 
void DoSchedDlMacBufferReq (const FfMacSchedSapProvider::SchedDlMacBufferReqParameters &params)
 Sched DL MAC buffer request function. More...
 
void DoSchedDlPagingBufferReq (const FfMacSchedSapProvider::SchedDlPagingBufferReqParameters &params)
 Sched DL paging buffer request function. More...
 
void DoSchedDlRachInfoReq (const FfMacSchedSapProvider::SchedDlRachInfoReqParameters &params)
 Sched DL RACH info request function. More...
 
void DoSchedDlRlcBufferReq (const FfMacSchedSapProvider::SchedDlRlcBufferReqParameters &params)
 Sched DL RLC buffer request function. More...
 
void DoSchedDlTriggerReq (const FfMacSchedSapProvider::SchedDlTriggerReqParameters &params)
 Sched DL trigger request function. More...
 
void DoSchedUlCqiInfoReq (const FfMacSchedSapProvider::SchedUlCqiInfoReqParameters &params)
 Sched UL CQI info request function. More...
 
void DoSchedUlMacCtrlInfoReq (const FfMacSchedSapProvider::SchedUlMacCtrlInfoReqParameters &params)
 Sched UL MAC control info request function. More...
 
void DoSchedUlNoiseInterferenceReq (const FfMacSchedSapProvider::SchedUlNoiseInterferenceReqParameters &params)
 Sched UL noise interference request function. More...
 
void DoSchedUlSrInfoReq (const FfMacSchedSapProvider::SchedUlSrInfoReqParameters &params)
 Sched UL SR info request function. More...
 
void DoSchedUlTriggerReq (const FfMacSchedSapProvider::SchedUlTriggerReqParameters &params)
 Sched UL trigger request function. More...
 
double EstimateUlSinr (uint16_t rnti, uint16_t rb)
 Estimate UL SNR function. More...
 
int GetRbgSize (int dlbandwidth)
 Get RBG size function. More...
 
bool HarqProcessAvailability (uint16_t rnti)
 Return the availability of free process for the RNTI specified. More...
 
unsigned int LcActivePerFlow (uint16_t rnti)
 LC Active per flow function. More...
 
void RefreshDlCqiMaps ()
 Refresh DL CGI maps function. More...
 
void RefreshHarqProcesses ()
 Refresh HARQ processes according to the timers. More...
 
void RefreshUlCqiMaps ()
 Refresh UL CGI maps function. More...
 
void UpdateDlRlcBufferInfo (uint16_t rnti, uint8_t lcid, uint16_t size)
 Update DL RLC buffer info function. More...
 
uint8_t UpdateHarqProcessId (uint16_t rnti)
 Update and return a new process Id for the RNTI specified. More...
 
void UpdateUlRlcBufferInfo (uint16_t rnti, uint16_t size)
 Update UL RLC buffer info function. More...
 

Private Attributes

std::map< uint16_t, SbMeasResult_sm_a30CqiRxed
 Map of UE's DL CQI A30 received. More...
 
std::map< uint16_t, uint32_t > m_a30CqiTimers
 Map of UE's timers on DL CQI A30 received. More...
 
std::map< uint16_t, std::vector< uint16_t > > m_allocationMaps
 Map of previous allocated UE per RBG (used to retrieve info from UL-CQI) More...
 
Ptr< LteAmcm_amc
 amc More...
 
std::map< uint16_t, uint32_t > m_ceBsrRxed
 Map of UE's buffer status reports received. More...
 
uint32_t m_cqiTimersThreshold
 
FfMacCschedSapProvider::CschedCellConfigReqParameters m_cschedCellConfig
 sched cell config More...
 
FfMacCschedSapProviderm_cschedSapProvider
 csched SAP provider More...
 
FfMacCschedSapUserm_cschedSapUser
 csched SAP user More...
 
std::map< uint16_t, uint8_t > m_dlHarqCurrentProcessId
 DL HARQ current process ID. More...
 
std::map< uint16_t, DlHarqProcessesDciBuffer_tm_dlHarqProcessesDciBuffer
 DL HARQ process DCI buffer. More...
 
std::map< uint16_t, DlHarqRlcPduListBuffer_tm_dlHarqProcessesRlcPduListBuffer
 DL HARQ process RLC PDU list buffer. More...
 
std::map< uint16_t, DlHarqProcessesStatus_tm_dlHarqProcessesStatus
 DL HARQ process status. More...
 
std::map< uint16_t, DlHarqProcessesTimer_tm_dlHarqProcessesTimer
 DL HARDQ process timer. More...
 
std::vector< DlInfoListElement_sm_dlInfoListBuffered
 HARQ retx buffered. More...
 
LteFfrSapProviderm_ffrSapProvider
 FFR SAP provider. More...
 
LteFfrSapUserm_ffrSapUser
 FFR SAP user. More...
 
std::set< uint16_t > m_flowStatsDl
 Set of UE statistics (per RNTI basis) in downlink. More...
 
std::set< uint16_t > m_flowStatsUl
 Set of UE statistics (per RNTI basis) More...
 
bool m_harqOn
 m_harqOn when false inhibit tte HARQ mechanisms (by default active) More...
 
uint16_t m_nextRntiUl
 RNTI of the next user to be served next scheduling in UL. More...
 
std::map< uint16_t, uint8_t > m_p10CqiRxed
 Map of UE's DL CQI P01 received. More...
 
std::map< uint16_t, uint32_t > m_p10CqiTimers
 Map of UE's timers on DL CQI P01 received. More...
 
std::vector< uint16_t > m_rachAllocationMap
 RACH allocation map. More...
 
std::vector< RachListElement_sm_rachList
 RACH list. More...
 
std::map< LteFlowId_t, FfMacSchedSapProvider::SchedDlRlcBufferReqParametersm_rlcBufferReq
 Vectors of UE's LC info. More...
 
FfMacSchedSapProviderm_schedSapProvider
 sched SAP provider More...
 
FfMacSchedSapUserm_schedSapUser
 sched SAP user More...
 
std::map< uint16_t, std::vector< double > > m_ueCqi
 Map of UEs' UL-CQI per RBG. More...
 
std::map< uint16_t, uint32_t > m_ueCqiTimers
 Map of UEs' timers on UL-CQI per RBG. More...
 
std::map< uint16_t, uint8_t > m_uesTxMode
 txMode of the UEs More...
 
uint8_t m_ulGrantMcs
 MCS for UL grant (default 0) More...
 
std::map< uint16_t, uint8_t > m_ulHarqCurrentProcessId
 UL HARQ current process ID. More...
 
std::map< uint16_t, UlHarqProcessesDciBuffer_tm_ulHarqProcessesDciBuffer
 UL HARQ process DCI buffer. More...
 
std::map< uint16_t, UlHarqProcessesStatus_tm_ulHarqProcessesStatus
 UL HARQ process status. More...
 

Friends

class MemberCschedSapProvider< FdMtFfMacScheduler >
 allow MemberCschedSapProvider<FdMtFfMacScheduler> class friend access More...
 
class MemberSchedSapProvider< FdMtFfMacScheduler >
 allow MemberSchedSapProvider<FdMtFfMacScheduler> clss friend access More...
 

Additional Inherited Members

- Public Types inherited from ns3::FfMacScheduler
enum  UlCqiFilter_t { SRS_UL_CQI , PUSCH_UL_CQI }
 The type of UL CQI to be filtered (ALL means accept all the CQI, where a new CQI of any type overwrite the old one, even of another type) More...
 
- Protected Member Functions inherited from ns3::Object
 Object (const Object &o)
 Copy an Object. More...
 
virtual void DoInitialize ()
 Initialize() implementation. More...
 
virtual void NotifyNewAggregate ()
 Notify all Objects aggregated to this one of a new Object being aggregated. More...
 
- Protected Member Functions inherited from ns3::ObjectBase
void ConstructSelf (const AttributeConstructionList &attributes)
 Complete construction of ObjectBase; invoked by derived classes. More...
 
virtual void NotifyConstructionCompleted ()
 Notifier called once the ObjectBase is fully constructed. More...
 
- Protected Attributes inherited from ns3::FfMacScheduler
UlCqiFilter_t m_ulCqiFilter
 UL CQI filter. More...
 

Detailed Description

Implements the SCHED SAP and CSCHED SAP for a Frequency Domain Maximize Throughput scheduler.

This class implements the interface defined by the FfMacScheduler abstract class

Definition at line 48 of file fdmt-ff-mac-scheduler.h.

Constructor & Destructor Documentation

◆ FdMtFfMacScheduler()

ns3::FdMtFfMacScheduler::FdMtFfMacScheduler ( )

Constructor.

Creates the MAC Scheduler interface implementation

Definition at line 50 of file fdmt-ff-mac-scheduler.cc.

References m_amc, m_cschedSapProvider, m_schedSapProvider, MemberCschedSapProvider< FdMtFfMacScheduler >, and MemberSchedSapProvider< FdMtFfMacScheduler >.

◆ ~FdMtFfMacScheduler()

ns3::FdMtFfMacScheduler::~FdMtFfMacScheduler ( )
override

Destructor.

Definition at line 60 of file fdmt-ff-mac-scheduler.cc.

References NS_LOG_FUNCTION.

Member Function Documentation

◆ DoCschedCellConfigReq()

void ns3::FdMtFfMacScheduler::DoCschedCellConfigReq ( const FfMacCschedSapProvider::CschedCellConfigReqParameters params)
private

◆ DoCschedLcConfigReq()

void ns3::FdMtFfMacScheduler::DoCschedLcConfigReq ( const FfMacCschedSapProvider::CschedLcConfigReqParameters params)
private

CSched LC config request function.

Parameters
paramsthe CSChed LC config request parameters

Definition at line 196 of file fdmt-ff-mac-scheduler.cc.

References m_flowStatsDl, m_flowStatsUl, NS_LOG_FUNCTION, and two-ray-to-three-gpp-ch-calibration::params.

◆ DoCschedLcReleaseReq()

void ns3::FdMtFfMacScheduler::DoCschedLcReleaseReq ( const FfMacCschedSapProvider::CschedLcReleaseReqParameters params)
private

CSched LC release request function.

Parameters
paramsthe CSched LC release request parameters

Definition at line 214 of file fdmt-ff-mac-scheduler.cc.

References m_rlcBufferReq, NS_LOG_FUNCTION, and two-ray-to-three-gpp-ch-calibration::params.

◆ DoCschedUeConfigReq()

void ns3::FdMtFfMacScheduler::DoCschedUeConfigReq ( const FfMacCschedSapProvider::CschedUeConfigReqParameters params)
private

◆ DoCschedUeReleaseReq()

◆ DoDispose()

void ns3::FdMtFfMacScheduler::DoDispose ( void  )
overridevirtual

Destructor implementation.

This method is called by Dispose() or by the Object's destructor, whichever comes first.

Subclasses are expected to implement their real destruction code in an overridden version of this method and chain up to their parent's implementation once they are done. i.e, for simplicity, the destructor of every subclass should be empty and its content should be moved to the associated DoDispose() method.

It is safe to call GetObject() from within this method.

Reimplemented from ns3::Object.

Definition at line 66 of file fdmt-ff-mac-scheduler.cc.

References m_cschedSapProvider, m_dlHarqProcessesDciBuffer, m_dlHarqProcessesRlcPduListBuffer, m_dlHarqProcessesTimer, m_dlInfoListBuffered, m_schedSapProvider, m_ulHarqCurrentProcessId, m_ulHarqProcessesDciBuffer, m_ulHarqProcessesStatus, and NS_LOG_FUNCTION.

◆ DoSchedDlCqiInfoReq()

void ns3::FdMtFfMacScheduler::DoSchedDlCqiInfoReq ( const FfMacSchedSapProvider::SchedDlCqiInfoReqParameters params)
private

Sched DL CQI info request function.

Parameters
paramsthe Sched DL CQI info request parameters

Definition at line 1156 of file fdmt-ff-mac-scheduler.cc.

References ns3::CqiListElement_s::A30, m_a30CqiRxed, m_a30CqiTimers, m_cqiTimersThreshold, m_p10CqiRxed, m_p10CqiTimers, NS_LOG_ERROR, NS_LOG_FUNCTION, NS_LOG_LOGIC, ns3::CqiListElement_s::P10, and two-ray-to-three-gpp-ch-calibration::params.

◆ DoSchedDlMacBufferReq()

void ns3::FdMtFfMacScheduler::DoSchedDlMacBufferReq ( const FfMacSchedSapProvider::SchedDlMacBufferReqParameters params)
private

Sched DL MAC buffer request function.

Parameters
paramsthe Sched DL MAC buffer request parameters

Definition at line 306 of file fdmt-ff-mac-scheduler.cc.

References NS_FATAL_ERROR, and NS_LOG_FUNCTION.

◆ DoSchedDlPagingBufferReq()

void ns3::FdMtFfMacScheduler::DoSchedDlPagingBufferReq ( const FfMacSchedSapProvider::SchedDlPagingBufferReqParameters params)
private

Sched DL paging buffer request function.

Parameters
paramsthe Sched DL paging buffer request parameters

Definition at line 298 of file fdmt-ff-mac-scheduler.cc.

References NS_FATAL_ERROR, and NS_LOG_FUNCTION.

◆ DoSchedDlRachInfoReq()

void ns3::FdMtFfMacScheduler::DoSchedDlRachInfoReq ( const FfMacSchedSapProvider::SchedDlRachInfoReqParameters params)
private

Sched DL RACH info request function.

Parameters
paramsthe Sched DL RACH info request parameters

Definition at line 1147 of file fdmt-ff-mac-scheduler.cc.

References m_rachList, NS_LOG_FUNCTION, and two-ray-to-three-gpp-ch-calibration::params.

◆ DoSchedDlRlcBufferReq()

void ns3::FdMtFfMacScheduler::DoSchedDlRlcBufferReq ( const FfMacSchedSapProvider::SchedDlRlcBufferReqParameters params)
private

Sched DL RLC buffer request function.

Parameters
paramsthe Sched DL RLC buffer request parameters

Definition at line 277 of file fdmt-ff-mac-scheduler.cc.

References m_rlcBufferReq, NS_LOG_FUNCTION, and two-ray-to-three-gpp-ch-calibration::params.

◆ DoSchedDlTriggerReq()

void ns3::FdMtFfMacScheduler::DoSchedDlTriggerReq ( const FfMacSchedSapProvider::SchedDlTriggerReqParameters params)
private

Sched DL trigger request function.

Parameters
paramsFfMacSchedSapProvider::SchedDlTriggerReqParameters&
Todo:
check correct value according the DCIs txed

Definition at line 443 of file fdmt-ff-mac-scheduler.cc.

References GetRbgSize(), ns3::HARQ_PROC_NUM, HarqProcessAvailability(), two-ray-to-three-gpp-ch-calibration::k, LcActivePerFlow(), m_a30CqiRxed, ns3::UlDciListElement_s::m_aggrLevel, m_amc, ns3::FfMacSchedSapUser::SchedDlConfigIndParameters::m_buildDataList, ns3::FfMacSchedSapUser::SchedDlConfigIndParameters::m_buildRarList, ns3::UlDciListElement_s::m_cceIndex, ns3::UlDciListElement_s::m_cqiRequest, ns3::UlGrant_s::m_cqiRequest, m_cschedCellConfig, ns3::UlDciListElement_s::m_dai, ns3::BuildDataListElement_s::m_dci, ns3::FfMacCschedSapProvider::CschedCellConfigReqParameters::m_dlBandwidth, m_dlHarqProcessesDciBuffer, m_dlHarqProcessesRlcPduListBuffer, m_dlHarqProcessesStatus, m_dlHarqProcessesTimer, m_dlInfoListBuffered, m_flowStatsDl, ns3::UlDciListElement_s::m_freqHopping, ns3::BuildRarListElement_s::m_grant, m_harqOn, ns3::DlDciListElement_s::m_harqProcess, ns3::UlDciListElement_s::m_hopping, ns3::UlGrant_s::m_hopping, ns3::RlcPduListElement_s::m_logicalChannelIdentity, ns3::DlDciListElement_s::m_mcs, ns3::UlDciListElement_s::m_mcs, ns3::UlGrant_s::m_mcs, ns3::UlDciListElement_s::m_n2Dmrs, ns3::DlDciListElement_s::m_ndi, ns3::UlDciListElement_s::m_ndi, ns3::FfMacSchedSapUser::SchedDlConfigIndParameters::m_nrOfPdcchOfdmSymbols, ns3::UlDciListElement_s::m_pdcchPowerOffset, m_rachAllocationMap, m_rachList, ns3::DlDciListElement_s::m_rbBitmap, ns3::UlDciListElement_s::m_rbLen, ns3::UlGrant_s::m_rbLen, ns3::UlDciListElement_s::m_rbStart, ns3::UlGrant_s::m_rbStart, ns3::DlDciListElement_s::m_resAlloc, m_rlcBufferReq, ns3::BuildDataListElement_s::m_rlcPduList, ns3::DlDciListElement_s::m_rnti, ns3::UlDciListElement_s::m_rnti, ns3::BuildDataListElement_s::m_rnti, ns3::UlGrant_s::m_rnti, ns3::BuildRarListElement_s::m_rnti, ns3::DlDciListElement_s::m_rv, m_schedSapUser, ns3::RlcPduListElement_s::m_size, ns3::UlDciListElement_s::m_tbSize, ns3::UlGrant_s::m_tbSize, ns3::DlDciListElement_s::m_tbsSize, ns3::DlDciListElement_s::m_tpc, ns3::UlDciListElement_s::m_tpc, ns3::UlGrant_s::m_tpc, m_uesTxMode, ns3::UlDciListElement_s::m_ueTxAntennaSelection, ns3::FfMacCschedSapProvider::CschedCellConfigReqParameters::m_ulBandwidth, ns3::UlGrant_s::m_ulDelay, m_ulGrantMcs, m_ulHarqCurrentProcessId, m_ulHarqProcessesDciBuffer, ns3::UlDciListElement_s::m_ulIndex, ns3::DlInfoListElement_s::NACK, NS_ASSERT_MSG, NS_FATAL_ERROR, NS_LOG_DEBUG, NS_LOG_ERROR, NS_LOG_FUNCTION, NS_LOG_INFO, two-ray-to-three-gpp-ch-calibration::params, RefreshDlCqiMaps(), RefreshHarqProcesses(), ns3::FfMacSchedSapUser::SchedDlConfigInd(), ns3::TransmissionModesLayers::TxMode2LayerNum(), UpdateDlRlcBufferInfo(), and UpdateHarqProcessId().

+ Here is the call graph for this function:

◆ DoSchedUlCqiInfoReq()

◆ DoSchedUlMacCtrlInfoReq()

void ns3::FdMtFfMacScheduler::DoSchedUlMacCtrlInfoReq ( const FfMacSchedSapProvider::SchedUlMacCtrlInfoReqParameters params)
private

Sched UL MAC control info request function.

Parameters
paramsthe Sched UL MAC control info request parameters

Definition at line 1622 of file fdmt-ff-mac-scheduler.cc.

References ns3::MacCeListElement_s::BSR, ns3::BufferSizeLevelBsr::BsrId2BufferSize(), m_ceBsrRxed, NS_LOG_FUNCTION, NS_LOG_LOGIC, and two-ray-to-three-gpp-ch-calibration::params.

+ Here is the call graph for this function:

◆ DoSchedUlNoiseInterferenceReq()

void ns3::FdMtFfMacScheduler::DoSchedUlNoiseInterferenceReq ( const FfMacSchedSapProvider::SchedUlNoiseInterferenceReqParameters params)
private

Sched UL noise interference request function.

Parameters
paramsthe Sched UL noise interference request parameters

Definition at line 1608 of file fdmt-ff-mac-scheduler.cc.

References NS_LOG_FUNCTION.

◆ DoSchedUlSrInfoReq()

void ns3::FdMtFfMacScheduler::DoSchedUlSrInfoReq ( const FfMacSchedSapProvider::SchedUlSrInfoReqParameters params)
private

Sched UL SR info request function.

Parameters
paramsthe Sched UL SR info request parameters

Definition at line 1615 of file fdmt-ff-mac-scheduler.cc.

References NS_LOG_FUNCTION.

◆ DoSchedUlTriggerReq()

void ns3::FdMtFfMacScheduler::DoSchedUlTriggerReq ( const FfMacSchedSapProvider::SchedUlTriggerReqParameters params)
private

◆ EstimateUlSinr()

double ns3::FdMtFfMacScheduler::EstimateUlSinr ( uint16_t  rnti,
uint16_t  rb 
)
private

Estimate UL SNR function.

Parameters
rntithe RNTI
rbthe RB
Returns
the UL SINR

Definition at line 1213 of file fdmt-ff-mac-scheduler.cc.

References m_cschedCellConfig, m_ueCqi, ns3::FfMacCschedSapProvider::CschedCellConfigReqParameters::m_ulBandwidth, and ns3::NO_SINR.

Referenced by DoSchedUlTriggerReq().

+ Here is the caller graph for this function:

◆ GetFfMacCschedSapProvider()

FfMacCschedSapProvider * ns3::FdMtFfMacScheduler::GetFfMacCschedSapProvider ( )
overridevirtual
Returns
the Provider part of the FfMacCschedSap provided by the Scheduler

Implements ns3::FfMacScheduler.

Definition at line 119 of file fdmt-ff-mac-scheduler.cc.

References m_cschedSapProvider.

◆ GetFfMacSchedSapProvider()

FfMacSchedSapProvider * ns3::FdMtFfMacScheduler::GetFfMacSchedSapProvider ( )
overridevirtual
Returns
the Provider part of the FfMacSchedSap provided by the Scheduler

Implements ns3::FfMacScheduler.

Definition at line 125 of file fdmt-ff-mac-scheduler.cc.

References m_schedSapProvider.

◆ GetLteFfrSapUser()

LteFfrSapUser * ns3::FdMtFfMacScheduler::GetLteFfrSapUser ( )
overridevirtual
Returns
the User part of the LteFfrSap provided by the FfrAlgorithm

Implements ns3::FfMacScheduler.

Definition at line 137 of file fdmt-ff-mac-scheduler.cc.

References m_ffrSapUser.

◆ GetRbgSize()

int ns3::FdMtFfMacScheduler::GetRbgSize ( int  dlbandwidth)
private

Get RBG size function.

Parameters
dlbandwidththe DL bandwidth
Returns
the RBG size

Definition at line 314 of file fdmt-ff-mac-scheduler.cc.

References ns3::FdMtType0AllocationRbg.

Referenced by DoSchedDlTriggerReq().

+ Here is the caller graph for this function:

◆ GetTypeId()

TypeId ns3::FdMtFfMacScheduler::GetTypeId ( void  )
static

Get the type ID.

Returns
the object TypeId

Definition at line 81 of file fdmt-ff-mac-scheduler.cc.

References m_cqiTimersThreshold, m_harqOn, m_ulGrantMcs, ns3::MakeBooleanAccessor(), ns3::MakeBooleanChecker(), ns3::MakeUintegerAccessor(), and ns3::TypeId::SetParent().

+ Here is the call graph for this function:

◆ HarqProcessAvailability()

bool ns3::FdMtFfMacScheduler::HarqProcessAvailability ( uint16_t  rnti)
private

Return the availability of free process for the RNTI specified.

Parameters
rntithe RNTI of the UE to be updated
Returns
the availability

Definition at line 348 of file fdmt-ff-mac-scheduler.cc.

References ns3::HARQ_PROC_NUM, m_dlHarqCurrentProcessId, m_dlHarqProcessesStatus, NS_FATAL_ERROR, and NS_LOG_FUNCTION.

Referenced by DoSchedDlTriggerReq().

+ Here is the caller graph for this function:

◆ LcActivePerFlow()

unsigned int ns3::FdMtFfMacScheduler::LcActivePerFlow ( uint16_t  rnti)
private

LC Active per flow function.

Parameters
rntithe RNTI
Returns
the LC active per flow

Definition at line 328 of file fdmt-ff-mac-scheduler.cc.

References m_rlcBufferReq.

Referenced by DoSchedDlTriggerReq().

+ Here is the caller graph for this function:

◆ RefreshDlCqiMaps()

void ns3::FdMtFfMacScheduler::RefreshDlCqiMaps ( )
private

Refresh DL CGI maps function.

Definition at line 1797 of file fdmt-ff-mac-scheduler.cc.

References m_a30CqiRxed, m_a30CqiTimers, m_cqiTimersThreshold, m_p10CqiRxed, m_p10CqiTimers, NS_ASSERT_MSG, and NS_LOG_INFO.

Referenced by DoSchedDlTriggerReq().

+ Here is the caller graph for this function:

◆ RefreshHarqProcesses()

void ns3::FdMtFfMacScheduler::RefreshHarqProcesses ( )
private

Refresh HARQ processes according to the timers.

Definition at line 411 of file fdmt-ff-mac-scheduler.cc.

References ns3::HARQ_DL_TIMEOUT, ns3::HARQ_PROC_NUM, m_dlHarqProcessesStatus, m_dlHarqProcessesTimer, NS_FATAL_ERROR, NS_LOG_DEBUG, and NS_LOG_FUNCTION.

Referenced by DoSchedDlTriggerReq().

+ Here is the caller graph for this function:

◆ RefreshUlCqiMaps()

void ns3::FdMtFfMacScheduler::RefreshUlCqiMaps ( )
private

Refresh UL CGI maps function.

Definition at line 1851 of file fdmt-ff-mac-scheduler.cc.

References m_cqiTimersThreshold, m_ueCqi, m_ueCqiTimers, NS_ASSERT_MSG, and NS_LOG_INFO.

Referenced by DoSchedUlTriggerReq().

+ Here is the caller graph for this function:

◆ SetFfMacCschedSapUser()

void ns3::FdMtFfMacScheduler::SetFfMacCschedSapUser ( FfMacCschedSapUser s)
overridevirtual

set the user part of the FfMacCschedSap that this Scheduler will interact with.

Normally this part of the SAP is exported by the MAC.

Parameters
s

Implements ns3::FfMacScheduler.

Definition at line 107 of file fdmt-ff-mac-scheduler.cc.

References m_cschedSapUser.

◆ SetFfMacSchedSapUser()

void ns3::FdMtFfMacScheduler::SetFfMacSchedSapUser ( FfMacSchedSapUser s)
overridevirtual

set the user part of the FfMacSchedSap that this Scheduler will interact with.

Normally this part of the SAP is exported by the MAC.

Parameters
s

Implements ns3::FfMacScheduler.

Definition at line 113 of file fdmt-ff-mac-scheduler.cc.

References m_schedSapUser.

◆ SetLteFfrSapProvider()

void ns3::FdMtFfMacScheduler::SetLteFfrSapProvider ( LteFfrSapProvider s)
overridevirtual

Set the Provider part of the LteFfrSap that this Scheduler will interact with.

Parameters
s

Implements ns3::FfMacScheduler.

Definition at line 131 of file fdmt-ff-mac-scheduler.cc.

References m_ffrSapProvider.

◆ TransmissionModeConfigurationUpdate()

void ns3::FdMtFfMacScheduler::TransmissionModeConfigurationUpdate ( uint16_t  rnti,
uint8_t  txMode 
)

Transmission mode configuration update.

Parameters
rntithe RNTI
txModethe transmit mode

Definition at line 1959 of file fdmt-ff-mac-scheduler.cc.

References ns3::FfMacCschedSapUser::CschedUeConfigUpdateInd(), m_cschedSapUser, NS_LOG_FUNCTION, and two-ray-to-three-gpp-ch-calibration::params.

+ Here is the call graph for this function:

◆ UpdateDlRlcBufferInfo()

void ns3::FdMtFfMacScheduler::UpdateDlRlcBufferInfo ( uint16_t  rnti,
uint8_t  lcid,
uint16_t  size 
)
private

Update DL RLC buffer info function.

Parameters
rntithe RNTI
lcidthe LCID
sizethe size

Definition at line 1881 of file fdmt-ff-mac-scheduler.cc.

References m_rlcBufferReq, NS_LOG_ERROR, and NS_LOG_INFO.

Referenced by DoSchedDlTriggerReq().

+ Here is the caller graph for this function:

◆ UpdateHarqProcessId()

uint8_t ns3::FdMtFfMacScheduler::UpdateHarqProcessId ( uint16_t  rnti)
private

Update and return a new process Id for the RNTI specified.

Parameters
rntithe RNTI of the UE to be updated
Returns
the process id value

Definition at line 372 of file fdmt-ff-mac-scheduler.cc.

References ns3::HARQ_PROC_NUM, m_dlHarqCurrentProcessId, m_dlHarqProcessesStatus, m_harqOn, NS_FATAL_ERROR, and NS_LOG_FUNCTION.

Referenced by DoSchedDlTriggerReq().

+ Here is the caller graph for this function:

◆ UpdateUlRlcBufferInfo()

void ns3::FdMtFfMacScheduler::UpdateUlRlcBufferInfo ( uint16_t  rnti,
uint16_t  size 
)
private

Update UL RLC buffer info function.

Parameters
rntithe RNTI
sizethe size

Definition at line 1936 of file fdmt-ff-mac-scheduler.cc.

References m_ceBsrRxed, NS_LOG_ERROR, and NS_LOG_INFO.

Referenced by DoSchedUlTriggerReq().

+ Here is the caller graph for this function:

Friends And Related Function Documentation

◆ MemberCschedSapProvider< FdMtFfMacScheduler >

allow MemberCschedSapProvider<FdMtFfMacScheduler> class friend access

Definition at line 79 of file fdmt-ff-mac-scheduler.h.

Referenced by FdMtFfMacScheduler().

◆ MemberSchedSapProvider< FdMtFfMacScheduler >

allow MemberSchedSapProvider<FdMtFfMacScheduler> clss friend access

Definition at line 79 of file fdmt-ff-mac-scheduler.h.

Referenced by FdMtFfMacScheduler().

Member Data Documentation

◆ m_a30CqiRxed

std::map<uint16_t, SbMeasResult_s> ns3::FdMtFfMacScheduler::m_a30CqiRxed
private

Map of UE's DL CQI A30 received.

Definition at line 297 of file fdmt-ff-mac-scheduler.h.

Referenced by DoSchedDlCqiInfoReq(), DoSchedDlTriggerReq(), and RefreshDlCqiMaps().

◆ m_a30CqiTimers

std::map<uint16_t, uint32_t> ns3::FdMtFfMacScheduler::m_a30CqiTimers
private

Map of UE's timers on DL CQI A30 received.

Definition at line 302 of file fdmt-ff-mac-scheduler.h.

Referenced by DoSchedDlCqiInfoReq(), and RefreshDlCqiMaps().

◆ m_allocationMaps

std::map<uint16_t, std::vector<uint16_t> > ns3::FdMtFfMacScheduler::m_allocationMaps
private

Map of previous allocated UE per RBG (used to retrieve info from UL-CQI)

Definition at line 308 of file fdmt-ff-mac-scheduler.h.

Referenced by DoSchedUlCqiInfoReq(), and DoSchedUlTriggerReq().

◆ m_amc

Ptr<LteAmc> ns3::FdMtFfMacScheduler::m_amc
private

amc

Definition at line 267 of file fdmt-ff-mac-scheduler.h.

Referenced by FdMtFfMacScheduler(), DoSchedDlTriggerReq(), and DoSchedUlTriggerReq().

◆ m_ceBsrRxed

std::map<uint16_t, uint32_t> ns3::FdMtFfMacScheduler::m_ceBsrRxed
private

Map of UE's buffer status reports received.

Definition at line 323 of file fdmt-ff-mac-scheduler.h.

Referenced by DoCschedUeReleaseReq(), DoSchedUlMacCtrlInfoReq(), DoSchedUlTriggerReq(), and UpdateUlRlcBufferInfo().

◆ m_cqiTimersThreshold

uint32_t ns3::FdMtFfMacScheduler::m_cqiTimersThreshold
private

of TTIs for which a CQI can be considered valid

Definition at line 340 of file fdmt-ff-mac-scheduler.h.

Referenced by DoSchedDlCqiInfoReq(), DoSchedUlCqiInfoReq(), GetTypeId(), RefreshDlCqiMaps(), and RefreshUlCqiMaps().

◆ m_cschedCellConfig

FfMacCschedSapProvider::CschedCellConfigReqParameters ns3::FdMtFfMacScheduler::m_cschedCellConfig
private

◆ m_cschedSapProvider

FfMacCschedSapProvider* ns3::FdMtFfMacScheduler::m_cschedSapProvider
private

csched SAP provider

Definition at line 328 of file fdmt-ff-mac-scheduler.h.

Referenced by FdMtFfMacScheduler(), DoDispose(), and GetFfMacCschedSapProvider().

◆ m_cschedSapUser

FfMacCschedSapUser* ns3::FdMtFfMacScheduler::m_cschedSapUser
private

◆ m_dlHarqCurrentProcessId

std::map<uint16_t, uint8_t> ns3::FdMtFfMacScheduler::m_dlHarqCurrentProcessId
private

DL HARQ current process ID.

Definition at line 346 of file fdmt-ff-mac-scheduler.h.

Referenced by DoCschedUeConfigReq(), DoCschedUeReleaseReq(), HarqProcessAvailability(), and UpdateHarqProcessId().

◆ m_dlHarqProcessesDciBuffer

std::map<uint16_t, DlHarqProcessesDciBuffer_t> ns3::FdMtFfMacScheduler::m_dlHarqProcessesDciBuffer
private

DL HARQ process DCI buffer.

Definition at line 353 of file fdmt-ff-mac-scheduler.h.

Referenced by DoCschedUeConfigReq(), DoCschedUeReleaseReq(), DoDispose(), and DoSchedDlTriggerReq().

◆ m_dlHarqProcessesRlcPduListBuffer

std::map<uint16_t, DlHarqRlcPduListBuffer_t> ns3::FdMtFfMacScheduler::m_dlHarqProcessesRlcPduListBuffer
private

DL HARQ process RLC PDU list buffer.

Definition at line 355 of file fdmt-ff-mac-scheduler.h.

Referenced by DoCschedUeConfigReq(), DoCschedUeReleaseReq(), DoDispose(), and DoSchedDlTriggerReq().

◆ m_dlHarqProcessesStatus

std::map<uint16_t, DlHarqProcessesStatus_t> ns3::FdMtFfMacScheduler::m_dlHarqProcessesStatus
private

◆ m_dlHarqProcessesTimer

std::map<uint16_t, DlHarqProcessesTimer_t> ns3::FdMtFfMacScheduler::m_dlHarqProcessesTimer
private

DL HARDQ process timer.

Definition at line 351 of file fdmt-ff-mac-scheduler.h.

Referenced by DoCschedUeConfigReq(), DoCschedUeReleaseReq(), DoDispose(), DoSchedDlTriggerReq(), and RefreshHarqProcesses().

◆ m_dlInfoListBuffered

std::vector<DlInfoListElement_s> ns3::FdMtFfMacScheduler::m_dlInfoListBuffered
private

HARQ retx buffered.

Definition at line 356 of file fdmt-ff-mac-scheduler.h.

Referenced by DoDispose(), and DoSchedDlTriggerReq().

◆ m_ffrSapProvider

LteFfrSapProvider* ns3::FdMtFfMacScheduler::m_ffrSapProvider
private

FFR SAP provider.

Definition at line 333 of file fdmt-ff-mac-scheduler.h.

Referenced by SetLteFfrSapProvider().

◆ m_ffrSapUser

LteFfrSapUser* ns3::FdMtFfMacScheduler::m_ffrSapUser
private

FFR SAP user.

Definition at line 332 of file fdmt-ff-mac-scheduler.h.

Referenced by GetLteFfrSapUser().

◆ m_flowStatsDl

std::set<uint16_t> ns3::FdMtFfMacScheduler::m_flowStatsDl
private

Set of UE statistics (per RNTI basis) in downlink.

Definition at line 277 of file fdmt-ff-mac-scheduler.h.

Referenced by DoCschedLcConfigReq(), DoCschedUeReleaseReq(), and DoSchedDlTriggerReq().

◆ m_flowStatsUl

std::set<uint16_t> ns3::FdMtFfMacScheduler::m_flowStatsUl
private

Set of UE statistics (per RNTI basis)

Definition at line 282 of file fdmt-ff-mac-scheduler.h.

Referenced by DoCschedLcConfigReq(), and DoCschedUeReleaseReq().

◆ m_harqOn

bool ns3::FdMtFfMacScheduler::m_harqOn
private

m_harqOn when false inhibit tte HARQ mechanisms (by default active)

Definition at line 345 of file fdmt-ff-mac-scheduler.h.

Referenced by DoSchedDlTriggerReq(), DoSchedUlTriggerReq(), GetTypeId(), and UpdateHarqProcessId().

◆ m_nextRntiUl

uint16_t ns3::FdMtFfMacScheduler::m_nextRntiUl
private

RNTI of the next user to be served next scheduling in UL.

Definition at line 338 of file fdmt-ff-mac-scheduler.h.

Referenced by DoCschedUeReleaseReq(), and DoSchedUlTriggerReq().

◆ m_p10CqiRxed

std::map<uint16_t, uint8_t> ns3::FdMtFfMacScheduler::m_p10CqiRxed
private

Map of UE's DL CQI P01 received.

Definition at line 287 of file fdmt-ff-mac-scheduler.h.

Referenced by DoSchedDlCqiInfoReq(), and RefreshDlCqiMaps().

◆ m_p10CqiTimers

std::map<uint16_t, uint32_t> ns3::FdMtFfMacScheduler::m_p10CqiTimers
private

Map of UE's timers on DL CQI P01 received.

Definition at line 292 of file fdmt-ff-mac-scheduler.h.

Referenced by DoSchedDlCqiInfoReq(), and RefreshDlCqiMaps().

◆ m_rachAllocationMap

std::vector<uint16_t> ns3::FdMtFfMacScheduler::m_rachAllocationMap
private

RACH allocation map.

Definition at line 368 of file fdmt-ff-mac-scheduler.h.

Referenced by DoCschedCellConfigReq(), DoSchedDlTriggerReq(), and DoSchedUlTriggerReq().

◆ m_rachList

std::vector<RachListElement_s> ns3::FdMtFfMacScheduler::m_rachList
private

RACH list.

Definition at line 367 of file fdmt-ff-mac-scheduler.h.

Referenced by DoSchedDlRachInfoReq(), and DoSchedDlTriggerReq().

◆ m_rlcBufferReq

std::map<LteFlowId_t, FfMacSchedSapProvider::SchedDlRlcBufferReqParameters> ns3::FdMtFfMacScheduler::m_rlcBufferReq
private

◆ m_schedSapProvider

FfMacSchedSapProvider* ns3::FdMtFfMacScheduler::m_schedSapProvider
private

sched SAP provider

Definition at line 329 of file fdmt-ff-mac-scheduler.h.

Referenced by FdMtFfMacScheduler(), DoDispose(), and GetFfMacSchedSapProvider().

◆ m_schedSapUser

FfMacSchedSapUser* ns3::FdMtFfMacScheduler::m_schedSapUser
private

sched SAP user

Definition at line 327 of file fdmt-ff-mac-scheduler.h.

Referenced by DoSchedDlTriggerReq(), DoSchedUlTriggerReq(), and SetFfMacSchedSapUser().

◆ m_ueCqi

std::map<uint16_t, std::vector<double> > ns3::FdMtFfMacScheduler::m_ueCqi
private

Map of UEs' UL-CQI per RBG.

Definition at line 313 of file fdmt-ff-mac-scheduler.h.

Referenced by DoSchedUlCqiInfoReq(), DoSchedUlTriggerReq(), EstimateUlSinr(), and RefreshUlCqiMaps().

◆ m_ueCqiTimers

std::map<uint16_t, uint32_t> ns3::FdMtFfMacScheduler::m_ueCqiTimers
private

Map of UEs' timers on UL-CQI per RBG.

Definition at line 318 of file fdmt-ff-mac-scheduler.h.

Referenced by DoSchedUlCqiInfoReq(), and RefreshUlCqiMaps().

◆ m_uesTxMode

std::map<uint16_t, uint8_t> ns3::FdMtFfMacScheduler::m_uesTxMode
private

txMode of the UEs

Definition at line 342 of file fdmt-ff-mac-scheduler.h.

Referenced by DoCschedUeConfigReq(), DoCschedUeReleaseReq(), and DoSchedDlTriggerReq().

◆ m_ulGrantMcs

uint8_t ns3::FdMtFfMacScheduler::m_ulGrantMcs
private

MCS for UL grant (default 0)

Definition at line 369 of file fdmt-ff-mac-scheduler.h.

Referenced by DoSchedDlTriggerReq(), and GetTypeId().

◆ m_ulHarqCurrentProcessId

std::map<uint16_t, uint8_t> ns3::FdMtFfMacScheduler::m_ulHarqCurrentProcessId
private

UL HARQ current process ID.

Definition at line 358 of file fdmt-ff-mac-scheduler.h.

Referenced by DoCschedUeConfigReq(), DoCschedUeReleaseReq(), DoDispose(), DoSchedDlTriggerReq(), and DoSchedUlTriggerReq().

◆ m_ulHarqProcessesDciBuffer

std::map<uint16_t, UlHarqProcessesDciBuffer_t> ns3::FdMtFfMacScheduler::m_ulHarqProcessesDciBuffer
private

UL HARQ process DCI buffer.

Definition at line 364 of file fdmt-ff-mac-scheduler.h.

Referenced by DoCschedUeConfigReq(), DoCschedUeReleaseReq(), DoDispose(), DoSchedDlTriggerReq(), and DoSchedUlTriggerReq().

◆ m_ulHarqProcessesStatus

std::map<uint16_t, UlHarqProcessesStatus_t> ns3::FdMtFfMacScheduler::m_ulHarqProcessesStatus
private

UL HARQ process status.

Definition at line 362 of file fdmt-ff-mac-scheduler.h.

Referenced by DoCschedUeConfigReq(), DoCschedUeReleaseReq(), DoDispose(), and DoSchedUlTriggerReq().


The documentation for this class was generated from the following files: