5G-LENA nr-v3.3-120-gdac69c56
The 5G/NR module for the ns-3 simulator
Loading...
Searching...
No Matches
nr-mac-scheduler-ue-info-rr.h
1// Copyright (c) 2019 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
2//
3// SPDX-License-Identifier: GPL-2.0-only
4
5#pragma once
6
7#include "nr-mac-scheduler-ns3.h"
8
9namespace ns3
10{
11
23{
24 public:
31 NrMacSchedulerUeInfoRR(uint16_t rnti, BeamId beamId, const GetRbPerRbgFn& fn)
32 : NrMacSchedulerUeInfo(rnti, beamId, fn)
33 {
34 }
35
51 {
52 return (lue.first->m_dlRBG.size() < rue.first->m_dlRBG.size());
53 }
54
70 {
71 return (lue.first->m_ulRBG.size() < rue.first->m_ulRBG.size());
72 }
73};
74
75} // namespace ns3
Representation of a beam id.
Definition beam-id.h:26
std::pair< UePtr, uint32_t > UePtrAndBufferReq
Pair between a pointer to NrMacSchedulerUeInfo and its buffer occupancy.
The representation of an user for any Mac scheduler.
UE representation for a round-robin scheduler.
NrMacSchedulerUeInfoRR(uint16_t rnti, BeamId beamId, const GetRbPerRbgFn &fn)
NrMacSchedulerUeInfoRR constructor.
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 ...