A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
lte-ue-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
* Nicola Baldo <nbaldo@cttc.es>
20
* Modified by:
21
* Danilo Abrignani <danilo.abrignani@unibo.it> (Carrier Aggregation - GSoC 2015)
22
* Biljana Bojovic <biljana.bojovic@cttc.es> (Carrier Aggregation)
23
*/
24
25
#ifndef LTE_UE_NET_DEVICE_H
26
#define LTE_UE_NET_DEVICE_H
27
28
#include "ns3/lte-net-device.h"
29
#include "ns3/event-id.h"
30
#include "ns3/traced-callback.h"
31
#include "ns3/nstime.h"
32
#include "ns3/lte-phy.h"
33
#include "ns3/eps-bearer.h"
34
#include "ns3/component-carrier-ue.h"
35
#include <vector>
36
#include <map>
37
38
namespace
ns3
{
39
40
class
Packet;
41
class
PacketBurst;
42
class
Node;
43
class
LtePhy;
44
class
LteUePhy;
45
class
LteEnbNetDevice;
46
class
LteUeMac;
47
class
LteUeRrc;
48
class
EpcUeNas;
49
class
EpcTft;
50
class
LteUeComponentCarrierManager;
51
56
class
LteUeNetDevice
:
public
LteNetDevice
57
{
58
59
public
:
64
static
TypeId
GetTypeId
(
void
);
65
66
LteUeNetDevice
(
void
);
67
virtual
~LteUeNetDevice
(
void
);
68
virtual
void
DoDispose
();
69
70
71
// inherited from NetDevice
72
virtual
bool
Send
(
Ptr<Packet>
packet,
const
Address
& dest, uint16_t protocolNumber);
73
78
Ptr<LteUeMac>
GetMac
(
void
)
const
;
79
84
Ptr<LteUeRrc>
GetRrc
()
const
;
85
90
Ptr<LteUePhy>
GetPhy
(
void
)
const
;
91
96
Ptr<EpcUeNas>
GetNas
(
void
)
const
;
97
102
Ptr<LteUeComponentCarrierManager>
GetComponentCarrierManager
(
void
)
const
;
103
108
uint64_t
GetImsi
()
const
;
109
116
uint32_t
GetDlEarfcn
()
const
;
117
124
void
SetDlEarfcn
(uint32_t earfcn);
125
130
uint32_t
GetCsgId
()
const
;
131
143
void
SetCsgId
(uint32_t csgId);
144
149
void
SetTargetEnb
(
Ptr<LteEnbNetDevice>
enb);
150
155
Ptr<LteEnbNetDevice>
GetTargetEnb
(
void
);
156
161
void
SetCcMap
(std::map< uint8_t,
Ptr<ComponentCarrierUe>
> ccm);
162
167
std::map< uint8_t, Ptr<ComponentCarrierUe> >
GetCcMap
(
void
);
168
169
170
171
protected
:
172
// inherited from Object
173
virtual
void
DoInitialize
(
void
);
174
175
176
private
:
177
bool
m_isConstructed
;
178
188
void
UpdateConfig
();
189
190
Ptr<LteEnbNetDevice>
m_targetEnb
;
191
192
Ptr<LteUeRrc>
m_rrc
;
193
Ptr<EpcUeNas>
m_nas
;
194
Ptr<LteUeComponentCarrierManager>
m_componentCarrierManager
;
195
196
uint64_t
m_imsi
;
197
198
uint32_t
m_dlEarfcn
;
200
uint32_t
m_csgId
;
201
202
std::map < uint8_t, Ptr<ComponentCarrierUe> >
m_ccMap
;
203
204
};
// end of class LteUeNetDevice
205
206
}
// namespace ns3
207
208
#endif
/* LTE_UE_NET_DEVICE_H */
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:59
ns3::LteUeNetDevice::GetPhy
Ptr< LteUePhy > GetPhy(void) const
Get the Phy.
Definition:
lte-ue-net-device.cc:187
ns3::LteUeNetDevice::GetCsgId
uint32_t GetCsgId() const
Returns the CSG ID the UE is currently a member of.
Definition:
lte-ue-net-device.cc:229
ns3::LteUeNetDevice::m_isConstructed
bool m_isConstructed
is constructed?
Definition:
lte-ue-net-device.h:177
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::LteUeNetDevice::m_rrc
Ptr< LteUeRrc > m_rrc
the RRC
Definition:
lte-ue-net-device.h:192
ns3::LteUeNetDevice::m_csgId
uint32_t m_csgId
the CSG ID
Definition:
lte-ue-net-device.h:200
ns3::LteUeNetDevice::GetMac
Ptr< LteUeMac > GetMac(void) const
Get the MAC.
Definition:
lte-ue-net-device.cc:171
ns3::LteUeNetDevice::SetCsgId
void SetCsgId(uint32_t csgId)
Enlist the UE device as a member of a particular CSG.
Definition:
lte-ue-net-device.cc:236
ns3::LteUeNetDevice::m_targetEnb
Ptr< LteEnbNetDevice > m_targetEnb
target ENB
Definition:
lte-ue-net-device.h:190
ns3::LteUeNetDevice::GetImsi
uint64_t GetImsi() const
Get the IMSI.
Definition:
lte-ue-net-device.cc:208
ns3::LteUeNetDevice::GetNas
Ptr< EpcUeNas > GetNas(void) const
Get the NAS.
Definition:
lte-ue-net-device.cc:201
ns3::LteUeNetDevice::SetTargetEnb
void SetTargetEnb(Ptr< LteEnbNetDevice > enb)
Set the target eNB where the UE is registered.
Definition:
lte-ue-net-device.cc:244
ns3::LteUeNetDevice::GetDlEarfcn
uint32_t GetDlEarfcn() const
Definition:
lte-ue-net-device.cc:215
ns3::LteUeNetDevice::LteUeNetDevice
LteUeNetDevice(void)
Definition:
lte-ue-net-device.cc:116
ns3::LteUeNetDevice::SetDlEarfcn
void SetDlEarfcn(uint32_t earfcn)
Definition:
lte-ue-net-device.cc:222
ns3::Ptr< Packet >
ns3::LteUeNetDevice::DoDispose
virtual void DoDispose()
Destructor implementation.
Definition:
lte-ue-net-device.cc:128
ns3::LteUeNetDevice::m_componentCarrierManager
Ptr< LteUeComponentCarrierManager > m_componentCarrierManager
the component carrier manager
Definition:
lte-ue-net-device.h:194
ns3::Address
a polymophic address class
Definition:
address.h:91
ns3::LteUeNetDevice::Send
virtual bool Send(Ptr< Packet > packet, const Address &dest, uint16_t protocolNumber)
Definition:
lte-ue-net-device.cc:287
ns3::LteUeNetDevice::m_imsi
uint64_t m_imsi
the IMSI
Definition:
lte-ue-net-device.h:196
ns3::LteUeNetDevice
The LteUeNetDevice class implements the UE net device.
Definition:
lte-ue-net-device.h:57
ns3::LteUeNetDevice::m_dlEarfcn
uint32_t m_dlEarfcn
downlink carrier frequency
Definition:
lte-ue-net-device.h:198
ns3::LteUeNetDevice::UpdateConfig
void UpdateConfig()
Propagate attributes and configuration to sub-modules.
Definition:
lte-ue-net-device.cc:147
ns3::LteUeNetDevice::m_ccMap
std::map< uint8_t, Ptr< ComponentCarrierUe > > m_ccMap
CC map.
Definition:
lte-ue-net-device.h:202
ns3::LteUeNetDevice::GetRrc
Ptr< LteUeRrc > GetRrc() const
Get the RRC.
Definition:
lte-ue-net-device.cc:179
ns3::LteUeNetDevice::DoInitialize
virtual void DoInitialize(void)
Initialize() implementation.
Definition:
lte-ue-net-device.cc:271
ns3::LteUeNetDevice::m_nas
Ptr< EpcUeNas > m_nas
the NAS
Definition:
lte-ue-net-device.h:193
ns3::LteNetDevice
LteNetDevice provides basic implementation for all LTE network devices.
Definition:
lte-net-device.h:49
ns3::LteUeNetDevice::GetComponentCarrierManager
Ptr< LteUeComponentCarrierManager > GetComponentCarrierManager(void) const
Get the componentn carrier manager.
Definition:
lte-ue-net-device.cc:194
ns3::LteUeNetDevice::~LteUeNetDevice
virtual ~LteUeNetDevice(void)
Definition:
lte-ue-net-device.cc:122
ns3::LteUeNetDevice::GetTypeId
static TypeId GetTypeId(void)
Get the type ID.
Definition:
lte-ue-net-device.cc:63
ns3::LteUeNetDevice::SetCcMap
void SetCcMap(std::map< uint8_t, Ptr< ComponentCarrierUe > > ccm)
Set the ComponentCarrier Map for the UE.
Definition:
lte-ue-net-device.cc:265
ns3::LteUeNetDevice::GetTargetEnb
Ptr< LteEnbNetDevice > GetTargetEnb(void)
Get the target eNB where the UE is registered.
Definition:
lte-ue-net-device.cc:252
ns3::LteUeNetDevice::GetCcMap
std::map< uint8_t, Ptr< ComponentCarrierUe > > GetCcMap(void)
Get the ComponentCarrier Map for the UE.
Definition:
lte-ue-net-device.cc:259
src
lte
model
lte-ue-net-device.h
Generated on Fri Oct 1 2021 17:03:22 for ns-3 by
1.8.20