A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
src
lte
model
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
45
class
ComponentCarrier
:
public
Object
46
{
47
public
:
52
static
TypeId
GetTypeId
(
void
);
53
54
ComponentCarrier
();
55
56
virtual
~ComponentCarrier
(
void
);
57
virtual
void
DoDispose
(
void
);
58
62
uint8_t
GetUlBandwidth
()
const
;
63
67
void
SetUlBandwidth
(uint8_t bw);
68
72
uint8_t
GetDlBandwidth
()
const
;
73
77
void
SetDlBandwidth
(uint8_t bw);
78
82
uint32_t
GetDlEarfcn
()
const
;
83
87
void
SetDlEarfcn
(uint32_t earfcn);
88
92
uint32_t
GetUlEarfcn
()
const
;
93
97
void
SetUlEarfcn
(uint32_t earfcn);
98
104
uint32_t
GetCsgId
()
const
;
105
118
void
SetCsgId
(uint32_t csgId);
119
125
bool
GetCsgIndication
()
const
;
126
142
void
SetCsgIndication
(
bool
csgIndication);
143
148
void
SetAsPrimary
(
bool
primaryCarrier);
149
154
bool
IsPrimary
()
const
;
155
156
157
uint8_t
m_dlBandwidth
;
158
uint8_t
m_ulBandwidth
;
160
uint32_t
m_dlEarfcn
;
161
uint32_t
m_ulEarfcn
;
163
protected
:
164
// inherited from Object
165
virtual
void
DoInitialize
(
void
);
166
uint16_t
m_csgId
;
167
bool
m_csgIndication
;
168
169
bool
m_primaryCarrier
;
170
bool
m_isConstructed
;
171
// bool m_isConfigured;
172
173
};
174
175
176
177
}
// namespace ns3
178
179
180
181
#endif
/* COMPONENT_CARRIER_H */
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::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:45
ns3::ComponentCarrier::ComponentCarrier
ComponentCarrier()
Definition:
component-carrier.cc:91
ns3::ComponentCarrier::m_primaryCarrier
bool m_primaryCarrier
whether the carrier is primary
Definition:
component-carrier.h:169
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:170
ns3::ComponentCarrier::~ComponentCarrier
virtual ~ComponentCarrier(void)
Definition:
component-carrier.cc:97
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:160
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:157
ns3::ComponentCarrier::SetDlBandwidth
void SetDlBandwidth(uint8_t bw)
Definition:
component-carrier.cc:143
ns3::ComponentCarrier::m_csgId
uint16_t m_csgId
CSG ID.
Definition:
component-carrier.h:166
ns3::ComponentCarrier::SetUlBandwidth
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::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:167
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:158
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:161
ns3::ComponentCarrier::GetDlEarfcn
uint32_t GetDlEarfcn() const
Definition:
component-carrier.cc:164
Generated on Wed Nov 7 2018 10:01:59 for ns-3 by
1.8.14