5G-LENA nr-v3.1-69-g2dd513a7
The 5G/NR module for the ns-3 simulator
|
The SlotAllocInfo struct. More...
#include "nr-phy-mac-common.h"
Public Types | |
enum | AllocationType { NONE = 0 , DL = 1 , UL = 2 , BOTH = 3 } |
Enum which indicates the allocations that are inside the allocation info. More... | |
Public Member Functions | |
SlotAllocInfo (SfnSf sfn) | |
bool | ContainsDataAllocation () const |
Check if we have data allocations. | |
bool | ContainsDlCtrlAllocation () const |
bool | ContainsUlCtrlAllocation () const |
bool | ContainsUlMsg3Allocation () const |
Check if we have UL MSG3 allocations. | |
void | Merge (const SlotAllocInfo &other) |
Merge the input parameter to this SlotAllocInfo. | |
bool | operator< (const SlotAllocInfo &rhs) const |
operator < (less than) | |
Public Attributes | |
std::vector< NrBuildRarListElement_s > | m_buildRarList |
build rar list that will be sent to UE | |
uint32_t | m_numSymAlloc {0} |
Number of allocated symbols. | |
SfnSf | m_sfnSf {} |
SfnSf of this allocation. | |
AllocationType | m_type {NONE} |
Allocations type. | |
std::deque< VarTtiAllocInfo > | m_varTtiAllocInfo |
queue of allocations | |
The SlotAllocInfo struct.
Definition at line 284 of file nr-phy-mac-common.h.
Enum which indicates the allocations that are inside the allocation info.
Enumerator | |
---|---|
NONE | No allocations. |
DL | DL Allocations. |
UL | UL Allocations. |
BOTH | DL and UL allocations. |
Definition at line 294 of file nr-phy-mac-common.h.
|
inline |
Definition at line 286 of file nr-phy-mac-common.h.
bool ns3::SlotAllocInfo::ContainsDataAllocation | ( | ) | const |
Check if we have data allocations.
Definition at line 43 of file nr-phy-mac-common.cc.
References ns3::DciInfoElementTdma::DATA, and m_varTtiAllocInfo.
bool ns3::SlotAllocInfo::ContainsDlCtrlAllocation | ( | ) | const |
Definition at line 57 of file nr-phy-mac-common.cc.
References ns3::DciInfoElementTdma::CTRL, ns3::DciInfoElementTdma::DL, and m_varTtiAllocInfo.
bool ns3::SlotAllocInfo::ContainsUlCtrlAllocation | ( | ) | const |
Definition at line 87 of file nr-phy-mac-common.cc.
References m_varTtiAllocInfo, and ns3::DciInfoElementTdma::SRS.
bool ns3::SlotAllocInfo::ContainsUlMsg3Allocation | ( | ) | const |
Check if we have UL MSG3 allocations.
Definition at line 73 of file nr-phy-mac-common.cc.
References m_varTtiAllocInfo, and ns3::DciInfoElementTdma::MSG3.
void ns3::SlotAllocInfo::Merge | ( | const SlotAllocInfo & | other | ) |
Merge the input parameter to this SlotAllocInfo.
other | SlotAllocInfo to merge in this allocation |
After the merge, order the allocation by symStart in DCI
Definition at line 20 of file nr-phy-mac-common.cc.
References BOTH, m_numSymAlloc, m_sfnSf, m_type, m_varTtiAllocInfo, and NONE.
bool ns3::SlotAllocInfo::operator< | ( | const SlotAllocInfo & | rhs | ) | const |
operator < (less than)
rhs | other SlotAllocInfo to compare |
The comparison is done on sfnSf
Definition at line 101 of file nr-phy-mac-common.cc.
References m_sfnSf.
std::vector<NrBuildRarListElement_s> ns3::SlotAllocInfo::m_buildRarList |
build rar list that will be sent to UE
Definition at line 336 of file nr-phy-mac-common.h.
uint32_t ns3::SlotAllocInfo::m_numSymAlloc {0} |
Number of allocated symbols.
Definition at line 333 of file nr-phy-mac-common.h.
Referenced by Merge(), ns3::NrMacSchedulerHarqRr::ScheduleDlHarq(), and ns3::NrMacSchedulerHarqRr::ScheduleUlHarq().
SfnSf ns3::SlotAllocInfo::m_sfnSf {} |
SfnSf of this allocation.
Definition at line 332 of file nr-phy-mac-common.h.
Referenced by Merge(), operator<(), and ns3::NrPhy::PushBackSlotAllocInfo().
AllocationType ns3::SlotAllocInfo::m_type {NONE} |
std::deque<VarTtiAllocInfo> ns3::SlotAllocInfo::m_varTtiAllocInfo |
queue of allocations
Definition at line 334 of file nr-phy-mac-common.h.
Referenced by ContainsDataAllocation(), ContainsDlCtrlAllocation(), ContainsUlCtrlAllocation(), ContainsUlMsg3Allocation(), Merge(), ns3::NrMacSchedulerHarqRr::ScheduleDlHarq(), and ns3::NrMacSchedulerHarqRr::ScheduleUlHarq().