A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
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
#include <ns3/packet.h>
27
#include <ns3/nstime.h>
28
#include "ns3/lte-phy.h"
29
#include <ns3/lte-enb-phy.h>
30
#include <ns3/pointer.h>
31
32
namespace
ns3
{
33
44
class
ComponentCarrier
:
public
Object
45
{
46
public
:
51
static
TypeId
GetTypeId
(
void
);
52
53
ComponentCarrier
();
54
55
virtual
~ComponentCarrier
(
void
);
56
virtual
void
DoDispose
(
void
);
57
61
uint8_t
GetUlBandwidth
()
const
;
62
66
virtual
void
SetUlBandwidth
(uint8_t bw);
67
71
uint8_t
GetDlBandwidth
()
const
;
72
76
virtual
void
SetDlBandwidth
(uint8_t bw);
77
81
uint32_t
GetDlEarfcn
()
const
;
82
86
void
SetDlEarfcn
(uint32_t earfcn);
87
91
uint32_t
GetUlEarfcn
()
const
;
92
96
void
SetUlEarfcn
(uint32_t earfcn);
97
103
uint32_t
GetCsgId
()
const
;
104
117
void
SetCsgId
(uint32_t csgId);
118
124
bool
GetCsgIndication
()
const
;
125
141
void
SetCsgIndication
(
bool
csgIndication);
142
147
void
SetAsPrimary
(
bool
primaryCarrier);
148
153
bool
IsPrimary
()
const
;
154
155
156
uint8_t
m_dlBandwidth
;
157
uint8_t
m_ulBandwidth
;
159
uint32_t
m_dlEarfcn
;
160
uint32_t
m_ulEarfcn
;
162
protected
:
163
// inherited from Object
164
virtual
void
DoInitialize
(
void
);
165
uint16_t
m_csgId
;
166
bool
m_csgIndication
;
167
168
bool
m_primaryCarrier
;
169
bool
m_isConstructed
;
170
// bool m_isConfigured;
171
172
};
173
180
class
ComponentCarrierBaseStation
:
public
ComponentCarrier
181
{
182
public
:
187
static
TypeId
GetTypeId
(
void
);
188
189
ComponentCarrierBaseStation
();
190
191
virtual
~ComponentCarrierBaseStation
(
void
);
192
197
uint16_t
GetCellId
();
198
203
void
SetCellId
(uint16_t cellId);
204
205
protected
:
206
uint16_t
m_cellId
;
207
};
208
209
}
// namespace ns3
210
211
212
213
#endif
/* COMPONENT_CARRIER_H */
ns3::ComponentCarrierBaseStation::GetTypeId
static TypeId GetTypeId(void)
Get the type ID.
Definition:
component-carrier-enb.cc:175
ns3::ComponentCarrier::SetAsPrimary
void SetAsPrimary(bool primaryCarrier)
Set as primary carrier.
Definition:
component-carrier.cc:222
ns3::ComponentCarrier::GetCsgId
uint32_t GetCsgId() const
Returns the CSG ID of the eNodeB.
Definition:
component-carrier.cc:190
ns3::ComponentCarrier::GetDlBandwidth
uint8_t GetDlBandwidth() const
Definition:
component-carrier.cc:137
ns3::ComponentCarrierBaseStation::m_cellId
uint16_t m_cellId
Cell identifier.
Definition:
component-carrier.h:206
ns3::ComponentCarrier::GetUlEarfcn
uint32_t GetUlEarfcn() const
Definition:
component-carrier.cc:177
ns3::ComponentCarrier
ComponentCarrier Object, it defines a single Carrier This is the parent class for both ComponentCarri...
Definition:
component-carrier.h:44
ns3::ComponentCarrier::ComponentCarrier
ComponentCarrier()
Definition:
component-carrier.cc:91
ns3::ComponentCarrierBaseStation
Defines a Base station, that is a ComponentCarrier but with a cell Id.
Definition:
component-carrier.h:180
ns3::ComponentCarrier::m_primaryCarrier
bool m_primaryCarrier
whether the carrier is primary
Definition:
component-carrier.h:168
ns3::ComponentCarrier::SetCsgId
void SetCsgId(uint32_t csgId)
Associate the eNodeB device with a particular CSG.
Definition:
component-carrier.cc:196
ns3::ComponentCarrier::GetUlBandwidth
uint8_t GetUlBandwidth() const
Definition:
component-carrier.cc:110
ns3::ComponentCarrier::SetCsgIndication
void SetCsgIndication(bool csgIndication)
Enable or disable the CSG indication flag.
Definition:
component-carrier.cc:209
ns3::ComponentCarrier::m_isConstructed
bool m_isConstructed
whether the instance is constructed
Definition:
component-carrier.h:169
ns3::ComponentCarrier::~ComponentCarrier
virtual ~ComponentCarrier(void)
Definition:
component-carrier.cc:97
ns3::ComponentCarrierBaseStation::ComponentCarrierBaseStation
ComponentCarrierBaseStation()
Definition:
component-carrier-enb.cc:186
ns3::ComponentCarrier::SetDlEarfcn
void SetDlEarfcn(uint32_t earfcn)
Definition:
component-carrier.cc:170
ns3::ComponentCarrier::DoDispose
virtual void DoDispose(void)
Destructor implementation.
Definition:
component-carrier.cc:103
ns3::ComponentCarrier::m_dlEarfcn
uint32_t m_dlEarfcn
downlink carrier frequency
Definition:
component-carrier.h:159
ns3::ComponentCarrier::SetUlEarfcn
void SetUlEarfcn(uint32_t earfcn)
Definition:
component-carrier.cc:183
ns3::ComponentCarrier::IsPrimary
bool IsPrimary() const
Checks if the carrier is the primary carrier.
Definition:
component-carrier.cc:216
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::ComponentCarrier::m_dlBandwidth
uint8_t m_dlBandwidth
downlink bandwidth in RBs
Definition:
component-carrier.h:156
ns3::ComponentCarrierBaseStation::SetCellId
void SetCellId(uint16_t cellId)
Set physical cell identifier.
Definition:
component-carrier-enb.cc:203
ns3::ComponentCarrier::SetDlBandwidth
virtual void SetDlBandwidth(uint8_t bw)
Definition:
component-carrier.cc:143
ns3::ComponentCarrier::m_csgId
uint16_t m_csgId
CSG ID.
Definition:
component-carrier.h:165
ns3::ComponentCarrier::SetUlBandwidth
virtual void SetUlBandwidth(uint8_t bw)
Definition:
component-carrier.cc:116
ns3::ComponentCarrier::GetTypeId
static TypeId GetTypeId(void)
Get the type ID.
Definition:
component-carrier.cc:36
ns3::ComponentCarrierBaseStation::~ComponentCarrierBaseStation
virtual ~ComponentCarrierBaseStation(void)
Definition:
component-carrier-enb.cc:191
ns3::ComponentCarrierBaseStation::GetCellId
uint16_t GetCellId()
Get cell identifier.
Definition:
component-carrier-enb.cc:197
ns3::ComponentCarrier::DoInitialize
virtual void DoInitialize(void)
Initialize() implementation.
Definition:
component-carrier.cc:229
ns3::ComponentCarrier::GetCsgIndication
bool GetCsgIndication() const
Returns the CSG indication flag of the eNodeB.
Definition:
component-carrier.cc:203
ns3::ComponentCarrier::m_csgIndication
bool m_csgIndication
CSG indication.
Definition:
component-carrier.h:166
ns3::Object
A base class which provides memory management and object aggregation.
Definition:
object.h:87
ns3::ComponentCarrier::m_ulBandwidth
uint8_t m_ulBandwidth
uplink bandwidth in RBs
Definition:
component-carrier.h:157
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:58
ns3::ComponentCarrier::m_ulEarfcn
uint32_t m_ulEarfcn
uplink carrier frequency
Definition:
component-carrier.h:160
ns3::ComponentCarrier::GetDlEarfcn
uint32_t GetDlEarfcn() const
Definition:
component-carrier.cc:164
src
lte
model
component-carrier.h
Generated on Wed Aug 21 2019 03:37:34 for ns-3 by
1.8.14