5G-LENA nr-v3.1-14-g738b08bc
The 5G/NR module for the ns-3 simulator
|
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. | |
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.
OperationBandInfo ns3::CcBwpCreator::CreateOperationBandContiguousCc | ( | const SimpleOperationBandConf & | conf | ) |
Create an operation band with the CC specified.
conf | Minimum configuration |
Creates an operation band by splitting the available bandwidth into equally-large contiguous carriers. Carriers will have common parameters like numerology.
Definition at line 188 of file cc-bwp-helper.cc.
References ns3::OperationBandInfo::AddCc(), ns3::OperationBandInfo::m_bandId, ns3::OperationBandInfo::m_cc, ns3::OperationBandInfo::m_centralFrequency, ns3::CcBwpCreator::SimpleOperationBandConf::m_centralFrequency, ns3::OperationBandInfo::m_channelBandwidth, ns3::CcBwpCreator::SimpleOperationBandConf::m_channelBandwidth, ns3::OperationBandInfo::m_higherFrequency, ns3::OperationBandInfo::m_lowerFrequency, ns3::CcBwpCreator::SimpleOperationBandConf::m_numBwp, ns3::CcBwpCreator::SimpleOperationBandConf::m_numCc, and ns3::CcBwpCreator::SimpleOperationBandConf::m_scenario.
Referenced by ns3::LenaV2Utils::SetLenaV2SimulatorParameters(), and ns3::LenaV2Utils::SetLenaV2SimulatorParameters().
OperationBandInfo ns3::CcBwpCreator::CreateOperationBandNonContiguousCc | ( | const std::vector< SimpleOperationBandConf > & | configuration | ) |
Creates an operation band with non-contiguous CC.
configuration | Minimum 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.
|
static |
Get all the BWP pointers from the specified vector of operation bands.
operationBands | the operation bands |
Definition at line 252 of file cc-bwp-helper.cc.
References ns3::OperationBandInfo::GetBwps().
Referenced by ns3::LenaV2Utils::SetLenaV2SimulatorParameters(), and ns3::LenaV2Utils::SetLenaV2SimulatorParameters().
|
static |
Plots the CA/BWP configuration using GNUPLOT. There must be a valid configuration.
filename | The path to write the output gnuplot file |
Definition at line 358 of file cc-bwp-helper.cc.
|
static |
Plots the CA/BWP configuration using GNUPLOT. There must be a valid configuration.
filename | The path to write the output gnuplot file |
Definition at line 267 of file cc-bwp-helper.cc.