5G-LENA nr-v3.3-81-g75c7590d
The 5G/NR module for the ns-3 simulator
|
GNB bandwidth part representation. More...
#include "bandwidth-part-gnb.h"
Public Member Functions | |
uint16_t | GetCellId () const |
Ptr< NrGnbMac > | GetMac () |
Ptr< NrGnbPhy > | GetPhy () |
Ptr< NrMacScheduler > | GetScheduler () |
void | SetAsPrimary (bool primaryCarrier) |
Set this bandwidth part as primary. | |
void | SetCellId (uint16_t cellId) |
void | SetDlBandwidth (uint16_t bw) override |
void | SetMac (Ptr< NrGnbMac > s) |
void | SetNrMacScheduler (Ptr< NrMacScheduler > s) |
void | SetPhy (Ptr< NrGnbPhy > s) |
void | SetUlBandwidth (uint16_t bw) override |
Public Member Functions inherited from ns3::NrComponentCarrier | |
void | DoDispose () override |
uint32_t | GetCsgId () const |
Returns the CSG ID of the eNodeB. | |
bool | GetCsgIndication () const |
Returns the CSG indication flag of the eNodeB. | |
uint16_t | GetDlBandwidth () const |
uint32_t | GetDlEarfcn () const |
uint16_t | GetUlBandwidth () const |
uint32_t | GetUlEarfcn () const |
bool | IsPrimary () const |
Checks if the carrier is the primary carrier. | |
void | SetAsPrimary (bool primaryCarrier) |
Set as primary carrier. | |
void | SetCsgId (uint32_t csgId) |
Associate the eNodeB device with a particular CSG. | |
void | SetCsgIndication (bool csgIndication) |
Enable or disable the CSG indication flag. | |
void | SetDlEarfcn (uint32_t earfcn) |
void | SetUlEarfcn (uint32_t earfcn) |
Static Public Member Functions | |
static TypeId | GetTypeId () |
Get the type ID. | |
Static Public Member Functions inherited from ns3::NrComponentCarrier | |
static TypeId | GetTypeId () |
Get the type ID. | |
Protected Member Functions | |
void | DoDispose () override |
DoDispose method inherited from Object. | |
Additional Inherited Members | |
Protected Attributes inherited from ns3::NrComponentCarrier | |
uint32_t | m_csgId {0} |
CSG ID. | |
bool | m_csgIndication {false} |
CSG indication. | |
uint16_t | m_dlBandwidth {0} |
downlink bandwidth in RBs */ | |
uint32_t | m_dlEarfcn {0} |
downlink carrier frequency */ | |
bool | m_primaryCarrier {false} |
whether the carrier is primary | |
uint16_t | m_ulBandwidth {0} |
uplink bandwidth in RBs */ | |
uint32_t | m_ulEarfcn {0} |
uplink carrier frequency */ | |
GNB bandwidth part representation.
Defines a single bandwidth part for the GNB.
ns3::BandwidthPartGnb is accessible through the following paths with Config::Set and Config::Connect:
/NodeList/[i]/DeviceList/[i]/$ns3::NrGnbNetDevice/BandwidthPartMap/[i]
/NodeList/[i]/DeviceList/[i]/$ns3::NrNetDevice/$ns3::NrGnbNetDevice/BandwidthPartMap/[i]
No TraceSources are defined for this type.
Size of this type is 104 bytes (on a 64-bit architecture).
Definition at line 26 of file bandwidth-part-gnb.h.
ns3::BandwidthPartGnb::BandwidthPartGnb | ( | ) |
Definition at line 45 of file bandwidth-part-gnb.cc.
|
override |
Definition at line 52 of file bandwidth-part-gnb.cc.
|
overrideprotected |
DoDispose method inherited from Object.
Definition at line 58 of file bandwidth-part-gnb.cc.
uint16_t ns3::BandwidthPartGnb::GetCellId | ( | ) | const |
Ptr< NrGnbMac > ns3::BandwidthPartGnb::GetMac | ( | ) |
Definition at line 85 of file bandwidth-part-gnb.cc.
Ptr< NrGnbPhy > ns3::BandwidthPartGnb::GetPhy | ( | ) |
Definition at line 70 of file bandwidth-part-gnb.cc.
Ptr< NrMacScheduler > ns3::BandwidthPartGnb::GetScheduler | ( | ) |
Definition at line 99 of file bandwidth-part-gnb.cc.
|
static |
void ns3::BandwidthPartGnb::SetAsPrimary | ( | bool | primaryCarrier | ) |
Set this bandwidth part as primary.
primaryCarrier | true or false. |
Unfortunately, for the "false" value, the method will do nothing. Every carrier starts as "not primary", so please, if you have to use SetAsPrimary (false) think two times.
Definition at line 113 of file bandwidth-part-gnb.cc.
void ns3::BandwidthPartGnb::SetCellId | ( | uint16_t | cellId | ) |
Set physical cell identifier
cellId | cell identifier |
Definition at line 130 of file bandwidth-part-gnb.cc.
|
inlineoverridevirtual |
bw | the downlink bandwidth in RBs |
Reimplemented from ns3::NrComponentCarrier.
Definition at line 71 of file bandwidth-part-gnb.h.
References ns3::NrComponentCarrier::m_dlBandwidth.
void ns3::BandwidthPartGnb::SetMac | ( | Ptr< NrGnbMac > | s | ) |
Set the NrGnbMac
s | a pointer to the NrGnbMac |
Definition at line 92 of file bandwidth-part-gnb.cc.
void ns3::BandwidthPartGnb::SetNrMacScheduler | ( | Ptr< NrMacScheduler > | s | ) |
Set the NrMacScheduler Algorithm
s | a pointer to the NrMacScheduler |
Definition at line 106 of file bandwidth-part-gnb.cc.
void ns3::BandwidthPartGnb::SetPhy | ( | Ptr< NrGnbPhy > | s | ) |
Set the NrGnbPhy
s | a pointer to the NrGnbPhy |
Definition at line 77 of file bandwidth-part-gnb.cc.
|
inlineoverridevirtual |
bw | the uplink bandwidth in RBs |
Reimplemented from ns3::NrComponentCarrier.
Definition at line 76 of file bandwidth-part-gnb.h.
References ns3::NrComponentCarrier::m_ulBandwidth.