5G-LENA  nr-v3.0-29-g83cc959
The 5G/NR module for the ns-3 simulator
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. More...
 
bool ContainsDlCtrlAllocation () const
 
bool ContainsUlCtrlAllocation () const
 
void Merge (const SlotAllocInfo &other)
 Merge the input parameter to this SlotAllocInfo. More...
 
bool operator< (const SlotAllocInfo &rhs) const
 operator < (less than) More...
 

Public Attributes

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 275 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 285 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 45 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 59 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 75 of file nr-phy-mac-common.cc.

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

◆ 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 22 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 89 of file nr-phy-mac-common.cc.

References m_sfnSf.


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