A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
lte-enb-net-device.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2010 TELEMATICS LAB, DEE - Politecnico di Bari
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: Giuseppe Piro <g.piro@poliba.it>
19
* Author: Marco Miozzo <marco.miozzo@cttc.es> : Update to FF API Architecture
20
*/
21
22
#ifndef LTE_ENB_NET_DEVICE_H
23
#define LTE_ENB_NET_DEVICE_H
24
25
#include "ns3/lte-net-device.h"
26
#include "ns3/event-id.h"
27
#include "ns3/mac48-address.h"
28
#include "ns3/traced-callback.h"
29
#include "ns3/nstime.h"
30
#include "ns3/lte-phy.h"
31
#include <vector>
32
33
namespace
ns3 {
34
35
class
Packet;
36
class
PacketBurst;
37
class
Node;
38
class
LtePhy;
39
class
LteEnbPhy;
40
class
LteEnbMac;
41
class
LteEnbRrc;
42
class
FfMacScheduler;
43
class
LteHandoverAlgorithm;
44
class
LteAnr;
45
46
52
class
LteEnbNetDevice
:
public
LteNetDevice
53
{
54
public
:
55
static
TypeId
GetTypeId
(
void
);
56
57
LteEnbNetDevice
();
58
59
virtual
~LteEnbNetDevice
(
void
);
60
virtual
void
DoDispose
(
void
);
61
62
// inherited from NetDevice
63
virtual
bool
Send
(
Ptr<Packet>
packet,
const
Address
& dest, uint16_t protocolNumber);
64
68
Ptr<LteEnbMac>
GetMac
(
void
)
const
;
69
73
Ptr<LteEnbPhy>
GetPhy
(
void
)
const
;
74
78
Ptr<LteEnbRrc>
GetRrc
()
const
;
79
83
uint16_t
GetCellId
()
const
;
84
88
uint8_t
GetUlBandwidth
()
const
;
89
93
void
SetUlBandwidth
(uint8_t bw);
94
98
uint8_t
GetDlBandwidth
()
const
;
99
103
void
SetDlBandwidth
(uint8_t bw);
104
108
uint16_t
GetDlEarfcn
()
const
;
109
113
void
SetDlEarfcn
(uint16_t earfcn);
114
118
uint16_t
GetUlEarfcn
()
const
;
119
123
void
SetUlEarfcn
(uint16_t earfcn);
124
130
uint32_t
GetCsgId
()
const
;
131
144
void
SetCsgId
(uint32_t csgId);
145
151
bool
GetCsgIndication
()
const
;
152
168
void
SetCsgIndication
(
bool
csgIndication);
169
170
protected
:
171
// inherited from Object
172
virtual
void
DoInitialize
(
void
);
173
174
175
private
:
176
bool
m_isConstructed
;
177
bool
m_isConfigured
;
178
189
void
UpdateConfig
();
190
191
Ptr<LteEnbMac>
m_mac
;
192
193
Ptr<LteEnbPhy>
m_phy
;
194
195
Ptr<LteEnbRrc>
m_rrc
;
196
197
Ptr<FfMacScheduler>
m_scheduler
;
198
199
Ptr<LteHandoverAlgorithm>
m_handoverAlgorithm
;
200
201
Ptr<LteAnr>
m_anr
;
202
203
uint16_t
m_cellId
;
205
uint8_t
m_dlBandwidth
;
206
uint8_t
m_ulBandwidth
;
208
uint16_t
m_dlEarfcn
;
209
uint16_t
m_ulEarfcn
;
211
uint16_t
m_csgId
;
212
bool
m_csgIndication
;
213
214
};
// end of class LteEnbNetDevice
215
216
}
// namespace ns3
217
218
#endif
/* LTE_ENB_NET_DEVICE_H */
ns3::LteEnbNetDevice::GetDlEarfcn
uint16_t GetDlEarfcn() const
Definition:
lte-enb-net-device.cc:261
ns3::Ptr< Packet >
ns3::LteEnbNetDevice::GetCellId
uint16_t GetCellId() const
Definition:
lte-enb-net-device.cc:201
ns3::LteEnbNetDevice::Send
virtual bool Send(Ptr< Packet > packet, const Address &dest, uint16_t protocolNumber)
Definition:
lte-enb-net-device.cc:334
ns3::LteEnbNetDevice::m_anr
Ptr< LteAnr > m_anr
Definition:
lte-enb-net-device.h:201
ns3::LteEnbNetDevice::GetUlBandwidth
uint8_t GetUlBandwidth() const
Definition:
lte-enb-net-device.cc:207
ns3::LteEnbNetDevice::m_dlBandwidth
uint8_t m_dlBandwidth
downlink bandwidth in RBs
Definition:
lte-enb-net-device.h:205
ns3::LteEnbNetDevice::GetPhy
Ptr< LteEnbPhy > GetPhy(void) const
Definition:
lte-enb-net-device.cc:189
ns3::LteEnbNetDevice::m_dlEarfcn
uint16_t m_dlEarfcn
downlink carrier frequency
Definition:
lte-enb-net-device.h:208
ns3::LteEnbNetDevice::GetCsgId
uint32_t GetCsgId() const
Returns the CSG ID of the eNodeB.
Definition:
lte-enb-net-device.cc:287
ns3::LteEnbNetDevice::m_isConstructed
bool m_isConstructed
Definition:
lte-enb-net-device.h:176
ns3::LteEnbNetDevice::m_csgId
uint16_t m_csgId
Definition:
lte-enb-net-device.h:211
ns3::LteEnbNetDevice::m_mac
Ptr< LteEnbMac > m_mac
Definition:
lte-enb-net-device.h:191
ns3::Address
a polymophic address class
Definition:
address.h:86
ns3::LteEnbNetDevice::UpdateConfig
void UpdateConfig()
Propagate attributes and configuration to sub-modules.
Definition:
lte-enb-net-device.cc:343
ns3::LteEnbNetDevice::SetUlBandwidth
void SetUlBandwidth(uint8_t bw)
Definition:
lte-enb-net-device.cc:213
ns3::LteEnbNetDevice::LteEnbNetDevice
LteEnbNetDevice()
Definition:
lte-enb-net-device.cc:138
ns3::LteEnbNetDevice::m_rrc
Ptr< LteEnbRrc > m_rrc
Definition:
lte-enb-net-device.h:195
ns3::LteEnbNetDevice::DoInitialize
virtual void DoInitialize(void)
This method is called only once by Object::Initialize.
Definition:
lte-enb-net-device.cc:316
ns3::LteEnbNetDevice::GetTypeId
static TypeId GetTypeId(void)
Definition:
lte-enb-net-device.cc:54
ns3::LteEnbNetDevice::m_phy
Ptr< LteEnbPhy > m_phy
Definition:
lte-enb-net-device.h:193
ns3::LteEnbNetDevice::GetRrc
Ptr< LteEnbRrc > GetRrc() const
Definition:
lte-enb-net-device.cc:195
ns3::LteEnbNetDevice::SetDlBandwidth
void SetDlBandwidth(uint8_t bw)
Definition:
lte-enb-net-device.cc:240
ns3::LteEnbNetDevice::SetDlEarfcn
void SetDlEarfcn(uint16_t earfcn)
Definition:
lte-enb-net-device.cc:267
ns3::LteEnbNetDevice::DoDispose
virtual void DoDispose(void)
This method is called by Object::Dispose or by the object's destructor, whichever comes first...
Definition:
lte-enb-net-device.cc:152
ns3::LteEnbNetDevice::SetCsgIndication
void SetCsgIndication(bool csgIndication)
Enable or disable the CSG indication flag.
Definition:
lte-enb-net-device.cc:307
ns3::LteEnbNetDevice::GetUlEarfcn
uint16_t GetUlEarfcn() const
Definition:
lte-enb-net-device.cc:274
ns3::LteEnbNetDevice::m_ulEarfcn
uint16_t m_ulEarfcn
uplink carrier frequency
Definition:
lte-enb-net-device.h:209
ns3::LteEnbNetDevice::m_csgIndication
bool m_csgIndication
Definition:
lte-enb-net-device.h:212
ns3::LteEnbNetDevice::GetCsgIndication
bool GetCsgIndication() const
Returns the CSG indication flag of the eNodeB.
Definition:
lte-enb-net-device.cc:301
ns3::LteEnbNetDevice::m_isConfigured
bool m_isConfigured
Definition:
lte-enb-net-device.h:177
ns3::LteEnbNetDevice::m_handoverAlgorithm
Ptr< LteHandoverAlgorithm > m_handoverAlgorithm
Definition:
lte-enb-net-device.h:199
ns3::LteEnbNetDevice::m_cellId
uint16_t m_cellId
Cell Identifer.
Definition:
lte-enb-net-device.h:203
ns3::LteEnbNetDevice::GetDlBandwidth
uint8_t GetDlBandwidth() const
Definition:
lte-enb-net-device.cc:234
ns3::LteEnbNetDevice::SetCsgId
void SetCsgId(uint32_t csgId)
Associate the eNodeB device with a particular CSG.
Definition:
lte-enb-net-device.cc:293
ns3::LteEnbNetDevice::m_ulBandwidth
uint8_t m_ulBandwidth
uplink bandwidth in RBs
Definition:
lte-enb-net-device.h:206
ns3::LteEnbNetDevice::m_scheduler
Ptr< FfMacScheduler > m_scheduler
Definition:
lte-enb-net-device.h:197
ns3::LteEnbNetDevice::~LteEnbNetDevice
virtual ~LteEnbNetDevice(void)
Definition:
lte-enb-net-device.cc:146
ns3::LteEnbNetDevice::SetUlEarfcn
void SetUlEarfcn(uint16_t earfcn)
Definition:
lte-enb-net-device.cc:280
ns3::LteNetDevice
LteNetDevice provides basic implementation for all LTE network devices.
Definition:
lte-net-device.h:48
ns3::LteEnbNetDevice
The eNodeB device implementation.
Definition:
lte-enb-net-device.h:52
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:49
ns3::LteEnbNetDevice::GetMac
Ptr< LteEnbMac > GetMac(void) const
Definition:
lte-enb-net-device.cc:183
src
lte
model
lte-enb-net-device.h
Generated on Sat Apr 19 2014 14:07:00 for ns-3 by
1.8.6