5G-LENA nr-v3.0-32-g83aee33
The 5G/NR module for the ns-3 simulator
Loading...
Searching...
No Matches

The BwpManagerUe class. More...

#include "bwp-manager-ue.h"

+ Inheritance diagram for ns3::BwpManagerUe:
+ Collaboration diagram for ns3::BwpManagerUe:

Public Member Functions

 BwpManagerUe ()
 BwpManagerUe constructor.
 
 ~BwpManagerUe () override
 ~BwpManagerUe
 
uint8_t RouteDlHarqFeedback (const DlHarqInfo &m) const
 The UE received a HARQ feedback from spectrum. Where this feedback should be forwarded?
 
uint8_t RouteIngoingCtrlMsg (const Ptr< NrControlMessage > &msg, uint8_t sourceBwpId) const
 Decide the BWP for the control message received.
 
uint8_t RouteOutgoingCtrlMsg (const Ptr< NrControlMessage > &msg, uint8_t sourceBwpId) const
 Route the outgoing messages to the right BWP.
 
void SetBwpManagerAlgorithm (const Ptr< BwpManagerAlgorithm > &algorithm)
 Set the algorithm.
 
void SetOutputLink (uint32_t sourceBwp, uint32_t outputBwp)
 Set a mapping between two BWP.
 

Static Public Member Functions

static TypeId GetTypeId ()
 GetTypeId.
 

Protected Member Functions

std::vector< LteUeCcmRrcSapProvider::LcsConfig > DoAddLc (uint8_t lcId, LteUeCmacSapProvider::LogicalChannelConfig lcConfig, LteMacSapUser *msu) override
 
LteMacSapUser * DoConfigureSignalBearer (uint8_t lcId, LteUeCmacSapProvider::LogicalChannelConfig lcConfig, LteMacSapUser *msu) override
 
void DoReportBufferStatus (LteMacSapProvider::ReportBufferStatusParameters params) override
 

Detailed Description

The BwpManagerUe class.

Config Paths

ns3::BwpManagerUe is accessible through the following paths with Config::Set and Config::Connect:

Attributes

No TraceSources are defined for this type.
Size of this type is 336 bytes (on a 64-bit architecture).

Definition at line 25 of file bwp-manager-ue.h.

Constructor & Destructor Documentation

◆ BwpManagerUe()

ns3::BwpManagerUe::BwpManagerUe ( )

BwpManagerUe constructor.

Definition at line 21 of file bwp-manager-ue.cc.

◆ ~BwpManagerUe()

ns3::BwpManagerUe::~BwpManagerUe ( )
override

~BwpManagerUe

Definition at line 27 of file bwp-manager-ue.cc.

Member Function Documentation

◆ DoAddLc()

std::vector< LteUeCcmRrcSapProvider::LcsConfig > ns3::BwpManagerUe::DoAddLc ( uint8_t  lcId,
LteUeCmacSapProvider::LogicalChannelConfig  lcConfig,
LteMacSapUser *  msu 
)
overrideprotected

Definition at line 71 of file bwp-manager-ue.cc.

◆ DoConfigureSignalBearer()

LteMacSapUser * ns3::BwpManagerUe::DoConfigureSignalBearer ( uint8_t  lcId,
LteUeCmacSapProvider::LogicalChannelConfig  lcConfig,
LteMacSapUser *  msu 
)
overrideprotected

Definition at line 88 of file bwp-manager-ue.cc.

◆ DoReportBufferStatus()

void ns3::BwpManagerUe::DoReportBufferStatus ( LteMacSapProvider::ReportBufferStatusParameters  params)
overrideprotected

Definition at line 55 of file bwp-manager-ue.cc.

◆ GetTypeId()

TypeId ns3::BwpManagerUe::GetTypeId ( )
static

GetTypeId.

Returns
the type id for the object

Definition at line 40 of file bwp-manager-ue.cc.

◆ RouteDlHarqFeedback()

uint8_t ns3::BwpManagerUe::RouteDlHarqFeedback ( const DlHarqInfo m) const

The UE received a HARQ feedback from spectrum. Where this feedback should be forwarded?

Parameters
mthe feedback
Returns
the BWP index in which the feedback can be transmitted to the gNB.

Definition at line 102 of file bwp-manager-ue.cc.

References ns3::HarqInfo::m_bwpIndex.

◆ RouteIngoingCtrlMsg()

uint8_t ns3::BwpManagerUe::RouteIngoingCtrlMsg ( const Ptr< NrControlMessage > &  msg,
uint8_t  sourceBwpId 
) const

Decide the BWP for the control message received.

Parameters
msgMessage
sourceBwpIdBWP Id from which this message come from.

The routing is made following the bandwidth part reported in the message.

Returns
the BWP Id to which this message should be routed to.

Definition at line 141 of file bwp-manager-ue.cc.

◆ RouteOutgoingCtrlMsg()

uint8_t ns3::BwpManagerUe::RouteOutgoingCtrlMsg ( const Ptr< NrControlMessage > &  msg,
uint8_t  sourceBwpId 
) const

Route the outgoing messages to the right BWP.

Parameters
msgthe message
sourceBwpIdthe source bwp of the message

The routing is made by following the mapping provided through the function SetOutputLink. If no mapping has been installed, or if the sourceBwpId provided is not in the mapping, then forward the message back to the originating BWP.

See also
SetOutputLink
Returns
the bwp to which the ctrl messages should be redirected

Definition at line 117 of file bwp-manager-ue.cc.

◆ SetBwpManagerAlgorithm()

void ns3::BwpManagerUe::SetBwpManagerAlgorithm ( const Ptr< BwpManagerAlgorithm > &  algorithm)

Set the algorithm.

Parameters
algorithmpointer to the algorithm

Definition at line 33 of file bwp-manager-ue.cc.

◆ SetOutputLink()

void ns3::BwpManagerUe::SetOutputLink ( uint32_t  sourceBwp,
uint32_t  outputBwp 
)

Set a mapping between two BWP.

Parameters
sourceBwpThe messages that comes from this value...
outputBwp... will get routed in this bandwidth part.

Call it for each mapping you want to install.

Definition at line 110 of file bwp-manager-ue.cc.


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