7#include "nr-mac-scheduler-tdma.h"
9#include <unordered_set>
115 const FTResources& assignableInIteration)
const override
120 const FTResources& assignableInIteration)
const override
132 mutable std::deque<uint16_t> m_dlRrRntiDeque;
133 mutable std::unordered_set<uint16_t> m_dlRntiSet;
std::pair< UePtr, uint32_t > UePtrAndBufferReq
Pair between a pointer to NrMacSchedulerUeInfo and its buffer occupancy.
PointInFTPlane FTResources
Represent an amount of RBG/symbols that can be, or is, assigned.
The base for all the TDMA schedulers.
Implements a Round-Robin (RR) Time-Division Multiple Access (TDMA) MAC scheduler for NR (New Radio).
void BeforeDlSched(const UePtrAndBufferReq &ue, const FTResources &assignableInIteration) const override
Prepare UE for the DL scheduling.
void NotAssignedDlResources(const UePtrAndBufferReq &ue, const FTResources ¬Assigned, const FTResources &totalAssigned) const override
Update the UE representation after a symbol (DL) has been assigned to other UE.
std::shared_ptr< NrMacSchedulerUeInfo > CreateUeRepresentation(const NrMacCschedSapProvider::CschedUeConfigReqParameters ¶ms) const override
Create an UE representation of the type NrMacSchedulerUeInfoRR.
NrMacSchedulerTdmaRR()
NrMacSchedulerTdmaRR constructor.
void BeforeUlSched(const UePtrAndBufferReq &ue, const FTResources &assignableInIteration) const override
Prepare UE for the UL scheduling.
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.
void NotAssignedUlResources(const UePtrAndBufferReq &ue, const FTResources ¬Assigned, const FTResources &totalAssigned) const override
Update the UE representation after a symbol (UL) has been assigned to other UE.
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.
void AssignedDlResources(const UePtrAndBufferReq &ue, const FTResources &assigned, const FTResources &totAssigned) const override
Update the UE representation after a symbol (DL) has been assigned to it.
static TypeId GetTypeId()
GetTypeId.
~NrMacSchedulerTdmaRR() override
~NrMacSchedulerTdmaRR deconstructor
void AssignedUlResources(const UePtrAndBufferReq &ue, const FTResources &assigned, const FTResources &totAssigned) const override
Update the UE representation after a symbol (DL) has been assigned to it.
Point in the Frequency/Time plane.