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
44
50
class
LteEnbNetDevice
:
public
LteNetDevice
51
{
52
public
:
53
static
TypeId
GetTypeId
(
void
);
54
55
LteEnbNetDevice
();
56
57
virtual
~LteEnbNetDevice
(
void
);
58
virtual
void
DoDispose
(
void
);
59
60
// inherited from NetDevice
61
virtual
bool
Send
(
Ptr<Packet>
packet,
const
Address
& dest, uint16_t protocolNumber);
62
66
Ptr<LteEnbMac>
GetMac
(
void
)
const
;
67
71
Ptr<LteEnbPhy>
GetPhy
(
void
)
const
;
72
76
Ptr<LteEnbRrc>
GetRrc
()
const
;
77
81
uint16_t
GetCellId
()
const
;
82
86
uint8_t
GetUlBandwidth
()
const
;
87
91
void
SetUlBandwidth
(uint8_t bw);
92
96
uint8_t
GetDlBandwidth
()
const
;
97
101
void
SetDlBandwidth
(uint8_t bw);
102
106
uint16_t
GetDlEarfcn
()
const
;
107
111
void
SetDlEarfcn
(uint16_t earfcn);
112
116
uint16_t
GetUlEarfcn
()
const
;
117
121
void
SetUlEarfcn
(uint16_t earfcn);
122
123
124
protected
:
125
// inherited from Object
126
virtual
void
DoInitialize
(
void
);
127
128
129
private
:
130
139
void
UpdateConfig
(
void
);
140
141
Ptr<LteEnbMac>
m_mac
;
142
143
Ptr<LteEnbPhy>
m_phy
;
144
145
Ptr<LteEnbRrc>
m_rrc
;
146
147
Ptr<FfMacScheduler>
m_scheduler
;
148
149
uint16_t
m_cellId
;
151
uint8_t
m_dlBandwidth
;
152
uint8_t
m_ulBandwidth
;
154
uint16_t
m_dlEarfcn
;
155
uint16_t
m_ulEarfcn
;
157
};
158
159
}
// namespace ns3
160
161
#endif
/* LTE_ENB_NET_DEVICE_H */
ns3::LteEnbNetDevice::GetDlEarfcn
uint16_t GetDlEarfcn() const
Definition:
lte-enb-net-device.cc:224
ns3::Ptr< Packet >
ns3::LteEnbNetDevice::UpdateConfig
void UpdateConfig(void)
Definition:
lte-enb-net-device.cc:272
ns3::LteEnbNetDevice::GetCellId
uint16_t GetCellId() const
Definition:
lte-enb-net-device.cc:166
ns3::LteEnbNetDevice::Send
virtual bool Send(Ptr< Packet > packet, const Address &dest, uint16_t protocolNumber)
Definition:
lte-enb-net-device.cc:261
ns3::LteEnbNetDevice::GetUlBandwidth
uint8_t GetUlBandwidth() const
Definition:
lte-enb-net-device.cc:172
ns3::LteEnbNetDevice::m_dlBandwidth
uint8_t m_dlBandwidth
Definition:
lte-enb-net-device.h:151
ns3::LteEnbNetDevice::GetPhy
Ptr< LteEnbPhy > GetPhy(void) const
Definition:
lte-enb-net-device.cc:152
ns3::LteEnbNetDevice::m_dlEarfcn
uint16_t m_dlEarfcn
Definition:
lte-enb-net-device.h:154
ns3::LteEnbNetDevice::m_mac
Ptr< LteEnbMac > m_mac
Definition:
lte-enb-net-device.h:141
ns3::Address
a polymophic address class
Definition:
address.h:86
ns3::LteEnbNetDevice::SetUlBandwidth
void SetUlBandwidth(uint8_t bw)
Definition:
lte-enb-net-device.cc:178
ns3::LteEnbNetDevice::LteEnbNetDevice
LteEnbNetDevice()
Definition:
lte-enb-net-device.cc:111
ns3::LteEnbNetDevice::m_rrc
Ptr< LteEnbRrc > m_rrc
Definition:
lte-enb-net-device.h:145
ns3::LteEnbNetDevice::DoInitialize
virtual void DoInitialize(void)
Definition:
lte-enb-net-device.cc:249
ns3::LteEnbNetDevice::GetTypeId
static TypeId GetTypeId(void)
Definition:
lte-enb-net-device.cc:51
ns3::LteEnbNetDevice::m_phy
Ptr< LteEnbPhy > m_phy
Definition:
lte-enb-net-device.h:143
ns3::LteEnbNetDevice::GetRrc
Ptr< LteEnbRrc > GetRrc() const
Definition:
lte-enb-net-device.cc:160
ns3::LteEnbNetDevice::SetDlBandwidth
void SetDlBandwidth(uint8_t bw)
Definition:
lte-enb-net-device.cc:204
ns3::LteEnbNetDevice::SetDlEarfcn
void SetDlEarfcn(uint16_t earfcn)
Definition:
lte-enb-net-device.cc:230
ns3::LteEnbNetDevice::DoDispose
virtual void DoDispose(void)
Definition:
lte-enb-net-device.cc:122
ns3::LteEnbNetDevice::GetUlEarfcn
uint16_t GetUlEarfcn() const
Definition:
lte-enb-net-device.cc:236
ns3::LteEnbNetDevice::m_ulEarfcn
uint16_t m_ulEarfcn
Definition:
lte-enb-net-device.h:155
ns3::LteEnbNetDevice::m_cellId
uint16_t m_cellId
Definition:
lte-enb-net-device.h:149
ns3::LteEnbNetDevice::GetDlBandwidth
uint8_t GetDlBandwidth() const
Definition:
lte-enb-net-device.cc:198
ns3::LteEnbNetDevice::m_ulBandwidth
uint8_t m_ulBandwidth
Definition:
lte-enb-net-device.h:152
ns3::LteEnbNetDevice::m_scheduler
Ptr< FfMacScheduler > m_scheduler
Definition:
lte-enb-net-device.h:147
ns3::LteEnbNetDevice::~LteEnbNetDevice
virtual ~LteEnbNetDevice(void)
Definition:
lte-enb-net-device.cc:116
ns3::LteEnbNetDevice::SetUlEarfcn
void SetUlEarfcn(uint16_t earfcn)
Definition:
lte-enb-net-device.cc:242
ns3::LteNetDevice
Definition:
lte-net-device.h:48
ns3::LteEnbNetDevice
Definition:
lte-enb-net-device.h:50
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:144
src
lte
model
lte-enb-net-device.h
Generated on Sat Nov 16 2013 12:55:31 for ns-3 by
1.8.5