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-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
*/
21
22
#ifndef LTE_UE_NET_DEVICE_H
23
#define LTE_UE_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 "ns3/eps-bearer.h"
32
33
34
namespace
ns3 {
35
36
class
Packet;
37
class
PacketBurst;
38
class
Node;
39
class
LtePhy;
40
class
LteUePhy;
41
class
LteEnbNetDevice;
42
class
LteUeMac;
43
class
LteUeRrc;
44
class
EpcUeNas;
45
class
EpcTft;
46
51
class
LteUeNetDevice
:
public
LteNetDevice
52
{
53
54
public
:
55
static
TypeId
GetTypeId
(
void
);
56
57
LteUeNetDevice
(
void
);
58
virtual
~LteUeNetDevice
(
void
);
59
virtual
void
DoDispose
();
60
61
62
// inherited from NetDevice
63
virtual
bool
Send
(
Ptr<Packet>
packet,
const
Address
& dest, uint16_t protocolNumber);
64
65
66
Ptr<LteUeMac>
GetMac
(
void
)
const
;
67
68
Ptr<LteUeRrc>
GetRrc
()
const
;
69
70
Ptr<LteUePhy>
GetPhy
(
void
)
const
;
71
72
Ptr<EpcUeNas>
GetNas
(
void
)
const
;
73
74
uint64_t
GetImsi
()
const
;
75
82
uint16_t
GetDlEarfcn
()
const
;
83
90
void
SetDlEarfcn
(uint16_t earfcn);
91
96
uint32_t
GetCsgId
()
const
;
97
109
void
SetCsgId
(uint32_t csgId);
110
115
void
SetTargetEnb
(
Ptr<LteEnbNetDevice>
enb);
116
121
Ptr<LteEnbNetDevice>
GetTargetEnb
(
void
);
122
123
124
protected
:
125
// inherited from Object
126
virtual
void
DoInitialize
(
void
);
127
128
129
private
:
130
bool
m_isConstructed
;
131
141
void
UpdateConfig
();
142
143
Ptr<LteEnbNetDevice>
m_targetEnb
;
144
145
Ptr<LteUeMac>
m_mac
;
146
Ptr<LteUePhy>
m_phy
;
147
Ptr<LteUeRrc>
m_rrc
;
148
Ptr<EpcUeNas>
m_nas
;
149
150
uint64_t
m_imsi
;
151
152
uint16_t
m_dlEarfcn
;
154
uint32_t
m_csgId
;
155
156
};
// end of class LteUeNetDevice
157
158
}
// namespace ns3
159
160
#endif
/* LTE_UE_NET_DEVICE_H */
ns3::Ptr< Packet >
ns3::LteUeNetDevice::m_rrc
Ptr< LteUeRrc > m_rrc
Definition:
lte-ue-net-device.h:147
ns3::LteUeNetDevice::~LteUeNetDevice
virtual ~LteUeNetDevice(void)
Definition:
lte-ue-net-device.cc:115
ns3::LteUeNetDevice::LteUeNetDevice
LteUeNetDevice(void)
Definition:
lte-ue-net-device.cc:109
ns3::LteUeNetDevice::GetRrc
Ptr< LteUeRrc > GetRrc() const
Definition:
lte-ue-net-device.cc:169
ns3::LteUeNetDevice::GetImsi
uint64_t GetImsi() const
Definition:
lte-ue-net-device.cc:191
ns3::LteUeNetDevice::m_targetEnb
Ptr< LteEnbNetDevice > m_targetEnb
Definition:
lte-ue-net-device.h:143
ns3::LteUeNetDevice::m_imsi
uint64_t m_imsi
Definition:
lte-ue-net-device.h:150
ns3::LteUeNetDevice::m_csgId
uint32_t m_csgId
Definition:
lte-ue-net-device.h:154
ns3::Address
a polymophic address class
Definition:
address.h:86
ns3::LteUeNetDevice::m_nas
Ptr< EpcUeNas > m_nas
Definition:
lte-ue-net-device.h:148
ns3::LteUeNetDevice::GetTypeId
static TypeId GetTypeId(void)
Definition:
lte-ue-net-device.cc:55
ns3::LteUeNetDevice::DoDispose
virtual void DoDispose()
This method is called by Object::Dispose or by the object's destructor, whichever comes first...
Definition:
lte-ue-net-device.cc:121
ns3::LteUeNetDevice::SetTargetEnb
void SetTargetEnb(Ptr< LteEnbNetDevice > enb)
Set the targer eNB where the UE is registered.
Definition:
lte-ue-net-device.cc:227
ns3::LteUeNetDevice::DoInitialize
virtual void DoInitialize(void)
This method is called only once by Object::Initialize.
Definition:
lte-ue-net-device.cc:242
ns3::LteUeNetDevice::m_phy
Ptr< LteUePhy > m_phy
Definition:
lte-ue-net-device.h:146
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:219
ns3::LteUeNetDevice::m_dlEarfcn
uint16_t m_dlEarfcn
downlink carrier frequency
Definition:
lte-ue-net-device.h:152
ns3::LteUeNetDevice::GetTargetEnb
Ptr< LteEnbNetDevice > GetTargetEnb(void)
Get the targer eNB where the UE is registered.
Definition:
lte-ue-net-device.cc:235
ns3::LteUeNetDevice::GetNas
Ptr< EpcUeNas > GetNas(void) const
Definition:
lte-ue-net-device.cc:184
ns3::LteUeNetDevice::GetDlEarfcn
uint16_t GetDlEarfcn() const
Definition:
lte-ue-net-device.cc:198
ns3::LteUeNetDevice::SetDlEarfcn
void SetDlEarfcn(uint16_t earfcn)
Definition:
lte-ue-net-device.cc:205
ns3::LteUeNetDevice::m_mac
Ptr< LteUeMac > m_mac
Definition:
lte-ue-net-device.h:145
ns3::LteUeNetDevice::UpdateConfig
void UpdateConfig()
Propagate attributes and configuration to sub-modules.
Definition:
lte-ue-net-device.cc:137
ns3::LteUeNetDevice::GetPhy
Ptr< LteUePhy > GetPhy(void) const
Definition:
lte-ue-net-device.cc:177
ns3::LteNetDevice
LteNetDevice provides basic implementation for all LTE network devices.
Definition:
lte-net-device.h:48
ns3::LteUeNetDevice::GetCsgId
uint32_t GetCsgId() const
Returns the CSG ID the UE is currently a member of.
Definition:
lte-ue-net-device.cc:212
ns3::LteUeNetDevice::Send
virtual bool Send(Ptr< Packet > packet, const Address &dest, uint16_t protocolNumber)
Definition:
lte-ue-net-device.cc:253
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:49
ns3::LteUeNetDevice::GetMac
Ptr< LteUeMac > GetMac(void) const
Definition:
lte-ue-net-device.cc:161
ns3::LteUeNetDevice::m_isConstructed
bool m_isConstructed
Definition:
lte-ue-net-device.h:130
ns3::LteUeNetDevice
The LteUeNetDevice class implements the UE net device.
Definition:
lte-ue-net-device.h:51
src
lte
model
lte-ue-net-device.h
Generated on Sat Apr 19 2014 14:07:01 for ns-3 by
1.8.6