A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
component-carrier.h
Go to the documentation of this file.
1
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2015 Danilo Abrignani
4
*
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License version 2 as
7
* published by the Free Software Foundation;
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
*
18
* Author: Danilo Abrignani <danilo.abrignani@unibo.it>
19
*/
20
21
22
#ifndef COMPONENT_CARRIER_H
23
#define COMPONENT_CARRIER_H
24
25
#include <ns3/object.h>
26
27
namespace
ns3
{
28
39
class
ComponentCarrier
:
public
Object
40
{
41
public
:
46
static
TypeId
GetTypeId
(
void
);
47
48
ComponentCarrier
();
49
50
virtual
~ComponentCarrier
(
void
);
51
virtual
void
DoDispose
(
void
);
52
56
uint16_t
GetUlBandwidth
()
const
;
57
61
virtual
void
SetUlBandwidth
(uint16_t bw);
62
66
uint16_t
GetDlBandwidth
()
const
;
67
71
virtual
void
SetDlBandwidth
(uint16_t bw);
72
76
uint32_t
GetDlEarfcn
()
const
;
77
81
void
SetDlEarfcn
(uint32_t earfcn);
82
86
uint32_t
GetUlEarfcn
()
const
;
87
91
void
SetUlEarfcn
(uint32_t earfcn);
92
98
uint32_t
GetCsgId
()
const
;
99
112
void
SetCsgId
(uint32_t csgId);
113
119
bool
GetCsgIndication
()
const
;
120
136
void
SetCsgIndication
(
bool
csgIndication);
137
142
void
SetAsPrimary
(
bool
primaryCarrier);
143
148
bool
IsPrimary
()
const
;
149
150
protected
:
151
uint32_t
m_csgId
{0};
152
bool
m_csgIndication
{
false
};
153
154
bool
m_primaryCarrier
{
false
};
155
156
uint16_t
m_dlBandwidth
{0};
157
uint16_t
m_ulBandwidth
{0};
158
159
uint32_t
m_dlEarfcn
{0};
160
uint32_t
m_ulEarfcn
{0};
161
};
162
169
class
ComponentCarrierBaseStation
:
public
ComponentCarrier
170
{
171
public
:
176
static
TypeId
GetTypeId
(
void
);
177
181
ComponentCarrierBaseStation
();
182
186
virtual
~ComponentCarrierBaseStation
(
void
)
override
;
187
192
uint16_t
GetCellId
();
193
198
void
SetCellId
(uint16_t cellId);
199
200
protected
:
201
uint16_t
m_cellId
{0};
202
};
203
204
}
// namespace ns3
205
206
207
208
#endif
/* COMPONENT_CARRIER_H */
ns3::ComponentCarrierBaseStation
Defines a Base station, that is a ComponentCarrier but with a cell Id.
Definition:
component-carrier.h:170
ns3::ComponentCarrierBaseStation::GetCellId
uint16_t GetCellId()
Get cell identifier.
Definition:
component-carrier.cc:252
ns3::ComponentCarrierBaseStation::~ComponentCarrierBaseStation
virtual ~ComponentCarrierBaseStation(void) override
~ComponentCarrierBaseStation
Definition:
component-carrier.cc:246
ns3::ComponentCarrierBaseStation::ComponentCarrierBaseStation
ComponentCarrierBaseStation()
Constructor.
Definition:
component-carrier.cc:241
ns3::ComponentCarrierBaseStation::SetCellId
void SetCellId(uint16_t cellId)
Set physical cell identifier.
Definition:
component-carrier.cc:258
ns3::ComponentCarrierBaseStation::m_cellId
uint16_t m_cellId
Cell identifier.
Definition:
component-carrier.h:201
ns3::ComponentCarrierBaseStation::GetTypeId
static TypeId GetTypeId(void)
Get the type ID.
Definition:
component-carrier.cc:230
ns3::ComponentCarrier
ComponentCarrier Object, it defines a single Carrier This is the parent class for both ComponentCarri...
Definition:
component-carrier.h:40
ns3::ComponentCarrier::SetCsgIndication
void SetCsgIndication(bool csgIndication)
Enable or disable the CSG indication flag.
Definition:
component-carrier.cc:207
ns3::ComponentCarrier::SetDlEarfcn
void SetDlEarfcn(uint32_t earfcn)
Definition:
component-carrier.cc:168
ns3::ComponentCarrier::~ComponentCarrier
virtual ~ComponentCarrier(void)
Definition:
component-carrier.cc:95
ns3::ComponentCarrier::GetDlEarfcn
uint32_t GetDlEarfcn() const
Definition:
component-carrier.cc:162
ns3::ComponentCarrier::GetUlBandwidth
uint16_t GetUlBandwidth() const
Definition:
component-carrier.cc:108
ns3::ComponentCarrier::GetCsgIndication
bool GetCsgIndication() const
Returns the CSG indication flag of the eNodeB.
Definition:
component-carrier.cc:201
ns3::ComponentCarrier::GetDlBandwidth
uint16_t GetDlBandwidth() const
Definition:
component-carrier.cc:135
ns3::ComponentCarrier::m_csgIndication
bool m_csgIndication
CSG indication.
Definition:
component-carrier.h:152
ns3::ComponentCarrier::GetTypeId
static TypeId GetTypeId(void)
Get the type ID.
Definition:
component-carrier.cc:33
ns3::ComponentCarrier::ComponentCarrier
ComponentCarrier()
Definition:
component-carrier.cc:90
ns3::ComponentCarrier::SetUlEarfcn
void SetUlEarfcn(uint32_t earfcn)
Definition:
component-carrier.cc:181
ns3::ComponentCarrier::GetCsgId
uint32_t GetCsgId() const
Returns the CSG ID of the eNodeB.
Definition:
component-carrier.cc:188
ns3::ComponentCarrier::SetAsPrimary
void SetAsPrimary(bool primaryCarrier)
Set as primary carrier.
Definition:
component-carrier.cc:220
ns3::ComponentCarrier::DoDispose
virtual void DoDispose(void)
Destructor implementation.
Definition:
component-carrier.cc:101
ns3::ComponentCarrier::m_dlBandwidth
uint16_t m_dlBandwidth
downlink bandwidth in RBs */
Definition:
component-carrier.h:156
ns3::ComponentCarrier::SetCsgId
void SetCsgId(uint32_t csgId)
Associate the eNodeB device with a particular CSG.
Definition:
component-carrier.cc:194
ns3::ComponentCarrier::m_ulEarfcn
uint32_t m_ulEarfcn
uplink carrier frequency */
Definition:
component-carrier.h:160
ns3::ComponentCarrier::GetUlEarfcn
uint32_t GetUlEarfcn() const
Definition:
component-carrier.cc:175
ns3::ComponentCarrier::SetUlBandwidth
virtual void SetUlBandwidth(uint16_t bw)
Definition:
component-carrier.cc:114
ns3::ComponentCarrier::m_primaryCarrier
bool m_primaryCarrier
whether the carrier is primary
Definition:
component-carrier.h:154
ns3::ComponentCarrier::IsPrimary
bool IsPrimary() const
Checks if the carrier is the primary carrier.
Definition:
component-carrier.cc:214
ns3::ComponentCarrier::m_ulBandwidth
uint16_t m_ulBandwidth
uplink bandwidth in RBs */
Definition:
component-carrier.h:157
ns3::ComponentCarrier::m_dlEarfcn
uint32_t m_dlEarfcn
downlink carrier frequency */
Definition:
component-carrier.h:159
ns3::ComponentCarrier::SetDlBandwidth
virtual void SetDlBandwidth(uint16_t bw)
Definition:
component-carrier.cc:141
ns3::ComponentCarrier::m_csgId
uint32_t m_csgId
CSG ID.
Definition:
component-carrier.h:151
ns3::Object
A base class which provides memory management and object aggregation.
Definition:
object.h:88
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:59
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
lte
model
component-carrier.h
Generated on Tue Feb 6 2024 19:21:21 for ns-3 by
1.9.1