![]() |
5G-LENA nr-v3.3-159-ga6832aa7
The 5G/NR module for the ns-3 simulator
|
#include "nr-component-carrier.h"
Public Member Functions | |
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. | |
virtual void | SetDlBandwidth (uint16_t bw) |
void | SetDlEarfcn (uint32_t earfcn) |
virtual void | SetUlBandwidth (uint16_t bw) |
void | SetUlEarfcn (uint32_t earfcn) |
Static Public Member Functions | |
static TypeId | GetTypeId () |
Get the type ID. | |
Protected Attributes | |
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 */ | |
NrComponentCarrier Object, it defines a single Carrier This is the parent class for both NrComponentCarrier and ComponentCarrierUe. This class contains the main physical configuration parameters for a carrier. Does not contain pointers to the MAC/PHY objects of the carrier.
Introspection did not find any typical Config paths.
No TraceSources are defined for this type.
Size of this type is 72 bytes (on a 64-bit architecture).
Definition at line 25 of file nr-component-carrier.h.
ns3::NrComponentCarrier::NrComponentCarrier | ( | ) |
Definition at line 82 of file nr-component-carrier.cc.
|
override |
Definition at line 88 of file nr-component-carrier.cc.
|
override |
Definition at line 94 of file nr-component-carrier.cc.
uint32_t ns3::NrComponentCarrier::GetCsgId | ( | ) | const |
Returns the CSG ID of the eNodeB.
Definition at line 181 of file nr-component-carrier.cc.
References m_csgId.
Referenced by GetTypeId().
bool ns3::NrComponentCarrier::GetCsgIndication | ( | ) | const |
Returns the CSG indication flag of the eNodeB.
Definition at line 194 of file nr-component-carrier.cc.
References m_csgIndication.
Referenced by GetTypeId().
uint16_t ns3::NrComponentCarrier::GetDlBandwidth | ( | ) | const |
Definition at line 128 of file nr-component-carrier.cc.
References m_dlBandwidth.
Referenced by GetTypeId().
uint32_t ns3::NrComponentCarrier::GetDlEarfcn | ( | ) | const |
Definition at line 155 of file nr-component-carrier.cc.
References m_dlEarfcn.
Referenced by GetTypeId().
|
static |
Get the type ID.
Definition at line 22 of file nr-component-carrier.cc.
References GetCsgId(), GetCsgIndication(), GetDlBandwidth(), GetDlEarfcn(), GetUlBandwidth(), GetUlEarfcn(), IsPrimary(), SetAsPrimary(), SetCsgId(), SetCsgIndication(), SetDlBandwidth(), SetDlEarfcn(), SetUlBandwidth(), and SetUlEarfcn().
uint16_t ns3::NrComponentCarrier::GetUlBandwidth | ( | ) | const |
Definition at line 101 of file nr-component-carrier.cc.
References m_ulBandwidth.
Referenced by GetTypeId().
uint32_t ns3::NrComponentCarrier::GetUlEarfcn | ( | ) | const |
Definition at line 168 of file nr-component-carrier.cc.
References m_ulEarfcn.
Referenced by GetTypeId().
bool ns3::NrComponentCarrier::IsPrimary | ( | ) | const |
Checks if the carrier is the primary carrier.
Definition at line 207 of file nr-component-carrier.cc.
References m_primaryCarrier.
Referenced by GetTypeId().
void ns3::NrComponentCarrier::SetAsPrimary | ( | bool | primaryCarrier | ) |
Set as primary carrier.
primaryCarrier | true to set as primary carrier |
Definition at line 213 of file nr-component-carrier.cc.
References m_primaryCarrier.
Referenced by GetTypeId().
void ns3::NrComponentCarrier::SetCsgId | ( | uint32_t | csgId | ) |
Associate the eNodeB device with a particular CSG.
csgId | the intended Closed Subscriber Group identity |
CSG identity is a number identifying a Closed Subscriber Group which the cell belongs to. eNodeB is associated with a single CSG identity.
The same CSG identity can also be associated to several UEs, which is equivalent as enlisting these UEs as the members of this particular CSG.
Definition at line 187 of file nr-component-carrier.cc.
References m_csgId.
Referenced by GetTypeId().
void ns3::NrComponentCarrier::SetCsgIndication | ( | bool | csgIndication | ) |
Enable or disable the CSG indication flag.
csgIndication | if TRUE, only CSG members are allowed to access this cell |
When the CSG indication field is set to TRUE, only UEs which are members of the CSG (i.e. same CSG ID) can gain access to the eNodeB, therefore enforcing closed access mode. Otherwise, the eNodeB operates as a non-CSG cell and implements open access mode.
Definition at line 200 of file nr-component-carrier.cc.
References m_csgIndication.
Referenced by GetTypeId().
|
virtual |
bw | the downlink bandwidth in RBs |
Reimplemented in ns3::BandwidthPartGnb, and ns3::BandwidthPartUe.
Definition at line 134 of file nr-component-carrier.cc.
References m_dlBandwidth.
Referenced by GetTypeId().
void ns3::NrComponentCarrier::SetDlEarfcn | ( | uint32_t | earfcn | ) |
earfcn | the downlink carrier frequency (EARFCN) |
Definition at line 161 of file nr-component-carrier.cc.
References m_dlEarfcn.
Referenced by GetTypeId().
|
virtual |
bw | the uplink bandwidth in RBs |
Reimplemented in ns3::BandwidthPartGnb, and ns3::BandwidthPartUe.
Definition at line 107 of file nr-component-carrier.cc.
References m_ulBandwidth.
Referenced by GetTypeId().
void ns3::NrComponentCarrier::SetUlEarfcn | ( | uint32_t | earfcn | ) |
earfcn | the uplink carrier frequency (EARFCN) |
Definition at line 174 of file nr-component-carrier.cc.
References m_ulEarfcn.
Referenced by GetTypeId().
|
protected |
CSG ID.
Definition at line 137 of file nr-component-carrier.h.
Referenced by GetCsgId(), and SetCsgId().
|
protected |
CSG indication.
Definition at line 138 of file nr-component-carrier.h.
Referenced by GetCsgIndication(), and SetCsgIndication().
|
protected |
downlink bandwidth in RBs */
Definition at line 142 of file nr-component-carrier.h.
Referenced by GetDlBandwidth(), SetDlBandwidth(), ns3::BandwidthPartGnb::SetDlBandwidth(), and ns3::BandwidthPartUe::SetDlBandwidth().
|
protected |
downlink carrier frequency */
Definition at line 145 of file nr-component-carrier.h.
Referenced by GetDlEarfcn(), and SetDlEarfcn().
|
protected |
whether the carrier is primary
Definition at line 140 of file nr-component-carrier.h.
Referenced by IsPrimary(), and SetAsPrimary().
|
protected |
uplink bandwidth in RBs */
Definition at line 143 of file nr-component-carrier.h.
Referenced by GetUlBandwidth(), SetUlBandwidth(), ns3::BandwidthPartGnb::SetUlBandwidth(), and ns3::BandwidthPartUe::SetUlBandwidth().
|
protected |
uplink carrier frequency */
Definition at line 146 of file nr-component-carrier.h.
Referenced by GetUlEarfcn(), and SetUlEarfcn().