|
A Discrete-Event Network Simulator
|
API
|
Go to the documentation of this file.
22 #include <ns3/uinteger.h>
23 #include <ns3/boolean.h>
25 #include <ns3/abort.h>
37 TypeId (
"ns3::ComponentCarrier")
39 .AddConstructor<ComponentCarrier> ()
40 .AddAttribute (
"UlBandwidth",
41 "Uplink Transmission Bandwidth Configuration in number of Resource Blocks",
45 MakeUintegerChecker<uint8_t> ())
46 .AddAttribute (
"DlBandwidth",
47 "Downlink Transmission Bandwidth Configuration in number of Resource Blocks",
51 MakeUintegerChecker<uint8_t> ())
52 .AddAttribute (
"DlEarfcn",
53 "Downlink E-UTRA Absolute Radio Frequency Channel Number (EARFCN) "
54 "as per 3GPP 36.101 Section 5.7.3. ",
58 MakeUintegerChecker<uint32_t> (0, 262143))
59 .AddAttribute (
"UlEarfcn",
60 "Uplink E-UTRA Absolute Radio Frequency Channel Number (EARFCN) "
61 "as per 3GPP 36.101 Section 5.7.3. ",
65 MakeUintegerChecker<uint32_t> (18000, 262143))
66 .AddAttribute (
"CsgId",
67 "The Closed Subscriber Group (CSG) identity that this eNodeB belongs to",
71 MakeUintegerChecker<uint32_t> ())
72 .AddAttribute (
"CsgIndication",
73 "If true, only UEs which are members of the CSG (i.e. same CSG ID) "
74 "can gain access to the eNodeB, therefore enforcing closed access mode. "
75 "Otherwise, the eNodeB operates as a non-CSG cell and implements open access mode.",
80 .AddAttribute (
"PrimaryCarrier",
81 "If true, this Carrier Component will be the Primary Carrier Component (PCC) "
82 "Only one PCC per eNodeB is (currently) allowed",
234 TypeId (
"ns3::ComponentCarrierBaseStation")
236 .AddConstructor<ComponentCarrierBaseStation> ()
a unique identifier for an interface.
uint16_t m_cellId
Cell identifier.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
uint16_t GetCellId()
Get cell identifier.
AttributeValue implementation for Boolean.
void SetAsPrimary(bool primaryCarrier)
Set as primary carrier.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
bool IsPrimary() const
Checks if the carrier is the primary carrier.
void SetCsgId(uint32_t csgId)
Associate the eNodeB device with a particular CSG.
void SetCellId(uint16_t cellId)
Set physical cell identifier.
uint16_t m_dlBandwidth
downlink bandwidth in RBs */
Ptr< const AttributeAccessor > MakeBooleanAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method.
uint32_t GetUlEarfcn() const
TypeId SetParent(TypeId tid)
Set the parent TypeId.
void SetDlEarfcn(uint32_t earfcn)
uint16_t m_ulBandwidth
uplink bandwidth in RBs */
uint16_t GetDlBandwidth() const
virtual void SetUlBandwidth(uint16_t bw)
bool m_csgIndication
CSG indication.
void SetUlEarfcn(uint32_t earfcn)
uint16_t GetUlBandwidth() const
#define NS_FATAL_ERROR(msg)
Report a fatal error with a message and terminate.
Defines a Base station, that is a ComponentCarrier but with a cell Id.
void SetCsgIndication(bool csgIndication)
Enable or disable the CSG indication flag.
ComponentCarrier Object, it defines a single Carrier This is the parent class for both ComponentCarri...
A base class which provides memory management and object aggregation.
uint32_t GetDlEarfcn() const
Ptr< const AttributeChecker > MakeBooleanChecker(void)
virtual void SetDlBandwidth(uint16_t bw)
virtual void DoDispose(void)
Destructor implementation.
bool m_primaryCarrier
whether the carrier is primary
uint32_t m_dlEarfcn
downlink carrier frequency */
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
virtual ~ComponentCarrier(void)
ComponentCarrierBaseStation()
Constructor.
Hold an unsigned integer type.
static TypeId GetTypeId(void)
Get the type ID.
Ptr< const AttributeAccessor > MakeUintegerAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method.
uint32_t GetCsgId() const
Returns the CSG ID of the eNodeB.
static TypeId GetTypeId(void)
Get the type ID.
virtual ~ComponentCarrierBaseStation(void) override
~ComponentCarrierBaseStation
bool GetCsgIndication() const
Returns the CSG indication flag of the eNodeB.
virtual void DoDispose(void)
Destructor implementation.
uint32_t m_ulEarfcn
uplink carrier frequency */