5G-LENA nr-v3.1-69-g2dd513a7
The 5G/NR module for the ns-3 simulator
Loading...
Searching...
No Matches
ns3::SlotAllocInfo Struct Reference

The SlotAllocInfo struct. More...

#include "nr-phy-mac-common.h"

+ Collaboration diagram for ns3::SlotAllocInfo:

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_sm_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< VarTtiAllocInfom_varTtiAllocInfo
 queue of allocations
 

Detailed Description

The SlotAllocInfo struct.

Definition at line 284 of file nr-phy-mac-common.h.

Member Enumeration Documentation

◆ AllocationType

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.

Constructor & Destructor Documentation

◆ SlotAllocInfo()

ns3::SlotAllocInfo::SlotAllocInfo ( SfnSf  sfn)
inline

Definition at line 286 of file nr-phy-mac-common.h.

Member Function Documentation

◆ ContainsDataAllocation()

bool ns3::SlotAllocInfo::ContainsDataAllocation ( ) const

Check if we have data allocations.

Returns
true if m_varTtiAllocInfo contains data allocations

Definition at line 43 of file nr-phy-mac-common.cc.

References ns3::DciInfoElementTdma::DATA, and m_varTtiAllocInfo.

◆ ContainsDlCtrlAllocation()

bool ns3::SlotAllocInfo::ContainsDlCtrlAllocation ( ) const
Returns
true if m_varTtiAllocInfo contains a DL ctrl allocation

Definition at line 57 of file nr-phy-mac-common.cc.

References ns3::DciInfoElementTdma::CTRL, ns3::DciInfoElementTdma::DL, and m_varTtiAllocInfo.

◆ ContainsUlCtrlAllocation()

bool ns3::SlotAllocInfo::ContainsUlCtrlAllocation ( ) const
Returns
true if m_varTtiAllocInfo contains a scheduled UL ctrl allocation (e.g., SRS)

Definition at line 87 of file nr-phy-mac-common.cc.

References m_varTtiAllocInfo, and ns3::DciInfoElementTdma::SRS.

◆ ContainsUlMsg3Allocation()

bool ns3::SlotAllocInfo::ContainsUlMsg3Allocation ( ) const

Check if we have UL MSG3 allocations.

Returns
true if m_varTtiAllocInfo contains data allocations

Definition at line 73 of file nr-phy-mac-common.cc.

References m_varTtiAllocInfo, and ns3::DciInfoElementTdma::MSG3.

◆ Merge()

void ns3::SlotAllocInfo::Merge ( const SlotAllocInfo other)

Merge the input parameter to this SlotAllocInfo.

Parameters
otherSlotAllocInfo 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.

◆ operator<()

bool ns3::SlotAllocInfo::operator< ( const SlotAllocInfo rhs) const

operator < (less than)

Parameters
rhsother SlotAllocInfo to compare
Returns
true if this SlotAllocInfo is less than rhs

The comparison is done on sfnSf

Definition at line 101 of file nr-phy-mac-common.cc.

References m_sfnSf.

Member Data Documentation

◆ m_buildRarList

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.

◆ m_numSymAlloc

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().

◆ m_sfnSf

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().

◆ m_type

AllocationType ns3::SlotAllocInfo::m_type {NONE}

Allocations type.

Definition at line 335 of file nr-phy-mac-common.h.

Referenced by Merge().

◆ m_varTtiAllocInfo


The documentation for this struct was generated from the following files: