5#include "nr-mac-scheduler-ofdma-mr.h"
7#include "nr-mac-scheduler-ue-info-mr.h"
14NS_LOG_COMPONENT_DEFINE(
"NrMacSchedulerOfdmaMR");
15NS_OBJECT_ENSURE_REGISTERED(NrMacSchedulerOfdmaMR);
20 static TypeId tid = TypeId(
"ns3::NrMacSchedulerOfdmaMR")
22 .AddConstructor<NrMacSchedulerOfdmaMR>();
31std::shared_ptr<NrMacSchedulerUeInfo>
35 NS_LOG_FUNCTION(
this);
36 return std::make_shared<NrMacSchedulerUeInfoMR>(
uint64_t GetNumRbPerRbg() const
Private function that is used to get the number of resource blocks per resource block group and also ...
std::pair< UePtr, uint32_t > UePtrAndBufferReq
Pair between a pointer to NrMacSchedulerUeInfo and its buffer occupancy.
std::shared_ptr< NrMacSchedulerUeInfo > CreateUeRepresentation(const NrMacCschedSapProvider::CschedUeConfigReqParameters ¶ms) const override
Create an UE representation of the type NrMacSchedulerUeInfoMR.
NrMacSchedulerOfdmaMR()
NrMacSchedulerOfdmaMR constructor.
std::function< bool(const NrMacSchedulerNs3::UePtrAndBufferReq &lhs, const NrMacSchedulerNs3::UePtrAndBufferReq &rhs)> GetUeCompareUlFn() const override
Return the comparison function to sort UL UE according to the scheduler policy.
std::function< bool(const NrMacSchedulerNs3::UePtrAndBufferReq &lhs, const NrMacSchedulerNs3::UePtrAndBufferReq &rhs)> GetUeCompareDlFn() const override
Return the comparison function to sort DL UE according to the scheduler policy.
static TypeId GetTypeId()
GetTypeId.
Assign frequencies in a round-robin fashion.
static bool CompareUeWeightsDl(const NrMacSchedulerNs3::UePtrAndBufferReq &lue, const NrMacSchedulerNs3::UePtrAndBufferReq &rue)
comparison function object (i.e. an object that satisfies the requirements of Compare) which returns ...
static bool CompareUeWeightsUl(const NrMacSchedulerNs3::UePtrAndBufferReq &lue, const NrMacSchedulerNs3::UePtrAndBufferReq &rue)
comparison function object (i.e. an object that satisfies the requirements of Compare) which returns ...