5G-LENA nr-v3.1-14-g738b08bc
The 5G/NR module for the ns-3 simulator
Loading...
Searching...
No Matches
ns3::CcBwpCreator Class Reference

Manages the correct creation of operation bands, component carriers and bandwidth parts. More...

#include "cc-bwp-helper.h"

Classes

struct  SimpleOperationBandConf
 Minimum configuration requirements for a OperationBand. More...
 

Public Member Functions

OperationBandInfo CreateOperationBandContiguousCc (const SimpleOperationBandConf &conf)
 Create an operation band with the CC specified.
 
OperationBandInfo CreateOperationBandNonContiguousCc (const std::vector< SimpleOperationBandConf > &configuration)
 Creates an operation band with non-contiguous CC.
 

Static Public Member Functions

static BandwidthPartInfoPtrVector GetAllBwps (const std::vector< std::reference_wrapper< OperationBandInfo > > &operationBands)
 Get all the BWP pointers from the specified vector of operation bands.
 
static void PlotLteCaConfiguration (const std::vector< OperationBandInfo * > &bands, const std::string &filename)
 Plots the CA/BWP configuration using GNUPLOT. There must be a valid configuration.
 
static void PlotNrCaBwpConfiguration (const std::vector< OperationBandInfo * > &bands, const std::string &filename)
 Plots the CA/BWP configuration using GNUPLOT. There must be a valid configuration.
 

Detailed Description

Manages the correct creation of operation bands, component carriers and bandwidth parts.

This class can be used to setup in an easy way the operational bands needed for a simple scenario. The first thing is to setup a simple configuration, specified by the struct SimpleOperationBandConf. Then, this configuration can be passed to CreateOperationBandContiguousCc.

Definition at line 233 of file cc-bwp-helper.h.

Member Function Documentation

◆ CreateOperationBandContiguousCc()

OperationBandInfo ns3::CcBwpCreator::CreateOperationBandContiguousCc ( const SimpleOperationBandConf conf)

◆ CreateOperationBandNonContiguousCc()

OperationBandInfo ns3::CcBwpCreator::CreateOperationBandNonContiguousCc ( const std::vector< SimpleOperationBandConf > &  configuration)

Creates an operation band with non-contiguous CC.

Parameters
configurationMinimum configuration for every CC.

Definition at line 231 of file cc-bwp-helper.cc.

References ns3::OperationBandInfo::AddCc(), ns3::OperationBandInfo::m_bandId, and ns3::OperationBandInfo::m_lowerFrequency.

+ Here is the call graph for this function:

◆ GetAllBwps()

BandwidthPartInfoPtrVector ns3::CcBwpCreator::GetAllBwps ( const std::vector< std::reference_wrapper< OperationBandInfo > > &  operationBands)
static

Get all the BWP pointers from the specified vector of operation bands.

Parameters
operationBandsthe operation bands
Returns
the pointers to the BWP to be passed to NrHelper

Definition at line 252 of file cc-bwp-helper.cc.

References ns3::OperationBandInfo::GetBwps().

Referenced by ns3::LenaV2Utils::SetLenaV2SimulatorParameters(), and ns3::LenaV2Utils::SetLenaV2SimulatorParameters().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ PlotLteCaConfiguration()

void ns3::CcBwpCreator::PlotLteCaConfiguration ( const std::vector< OperationBandInfo * > &  bands,
const std::string &  filename 
)
static

Plots the CA/BWP configuration using GNUPLOT. There must be a valid configuration.

Parameters
filenameThe path to write the output gnuplot file

Definition at line 358 of file cc-bwp-helper.cc.

◆ PlotNrCaBwpConfiguration()

void ns3::CcBwpCreator::PlotNrCaBwpConfiguration ( const std::vector< OperationBandInfo * > &  bands,
const std::string &  filename 
)
static

Plots the CA/BWP configuration using GNUPLOT. There must be a valid configuration.

Parameters
filenameThe path to write the output gnuplot file

Definition at line 267 of file cc-bwp-helper.cc.


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