5G-LENA nr-v3.3-159-ga6832aa7
The 5G/NR module for the ns-3 simulator
Loading...
Searching...
No Matches
nr-mac-scheduler-ue-info-mr.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#include "nr-mac-scheduler-ue-info-rr.h"
9
10namespace ns3
11{
12
24{
25 public:
32 NrMacSchedulerUeInfoMR(uint16_t rnti, BeamId beamId, const GetRbPerRbgFn& fn)
33 : NrMacSchedulerUeInfo(rnti, beamId, fn)
34 {
35 }
36
50 {
51 if (lue.first->GetDlMcs() == rue.first->GetDlMcs())
52 {
54 }
55
56 return (lue.first->GetDlMcs() > rue.first->GetDlMcs());
57 }
58
72 {
73 if (lue.first->m_ulMcs == rue.first->m_ulMcs)
74 {
76 }
77
78 return (lue.first->m_ulMcs > rue.first->m_ulMcs);
79 }
80};
81
82} // 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 maximum rate scheduler.
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 ...
NrMacSchedulerUeInfoMR(uint16_t rnti, BeamId beamId, const GetRbPerRbgFn &fn)
NrMacSchedulerUeInfoMR 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 ...