![]() |
5G-LENA nr-v3.3-161-gad18933f
The 5G/NR module for the ns-3 simulator
|
Spectrum part. More...
#include "cc-bwp-helper.h"
Public Member Functions | |
Ptr< SpectrumChannel > | GetChannel () const |
Get the spectrum channel associated with the BWP. | |
void | SetChannel (Ptr< SpectrumChannel > channel) |
Set the spectrum channel for the BWP. | |
Public Attributes | |
uint8_t | m_bwpId {0} |
BWP id. | |
double | m_centralFrequency {0.0} |
BWP central frequency. | |
double | m_channelBandwidth {0.0} |
BWP bandwidth. | |
double | m_higherFrequency {0.0} |
BWP higher frequency. | |
double | m_lowerFrequency {0.0} |
BWP lower frequency. | |
Spectrum part.
This is the minimum unit of usable spectrum by a PHY class. For creating any GNB or UE, you will be asked to provide a list of BandwidthPartInfo to the methods NrHelper::InstallGnbDevice() and NrHelper::InstallUeDevice(). The reason is that the helper will, for every GNB and UE in the scenario, create a PHY class that will be attached to the channels included in this struct.
For every bandwidth part (in this context, referred to a spectrum part) you have to indicate the central frequency and the higher/lower frequency, as well as the entire bandwidth plus the modeling.
Definition at line 45 of file cc-bwp-helper.h.
Ptr< SpectrumChannel > ns3::BandwidthPartInfo::GetChannel | ( | ) | const |
Get the spectrum channel associated with the BWP.
Definition at line 109 of file cc-bwp-helper.cc.
void ns3::BandwidthPartInfo::SetChannel | ( | Ptr< SpectrumChannel > | channel | ) |
Set the spectrum channel for the BWP.
channel | The spectrum channel to be set for the BWP |
Definition at line 103 of file cc-bwp-helper.cc.
uint8_t ns3::BandwidthPartInfo::m_bwpId {0} |
BWP id.
Definition at line 47 of file cc-bwp-helper.h.
double ns3::BandwidthPartInfo::m_centralFrequency {0.0} |
BWP central frequency.
Definition at line 48 of file cc-bwp-helper.h.
double ns3::BandwidthPartInfo::m_channelBandwidth {0.0} |
BWP bandwidth.
Definition at line 51 of file cc-bwp-helper.h.
double ns3::BandwidthPartInfo::m_higherFrequency {0.0} |
BWP higher frequency.
Definition at line 50 of file cc-bwp-helper.h.
double ns3::BandwidthPartInfo::m_lowerFrequency {0.0} |
BWP lower frequency.
Definition at line 49 of file cc-bwp-helper.h.