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 "
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 "
lte-phy.h
"
31
#include "
lte-phy.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
49
class
LteUeNetDevice
:
public
LteNetDevice
50
{
51
52
public
:
53
static
TypeId
GetTypeId
(
void
);
54
55
LteUeNetDevice
(
void
);
61
LteUeNetDevice
(
Ptr<Node>
node,
Ptr<LteUePhy>
phy,
Ptr<LteUeMac>
mac,
Ptr<LteUeRrc>
rrc);
62
63
virtual
~LteUeNetDevice
(
void
);
64
virtual
void
DoDispose
();
65
66
67
// inherited from NetDevice
68
virtual
bool
Send
(
Ptr<Packet>
packet,
const
Address
& dest, uint16_t protocolNumber);
69
70
71
Ptr<LteUeMac>
GetMac
(
void
);
72
73
Ptr<LteUeRrc>
GetRrc
();
74
75
Ptr<LteUePhy>
GetPhy
(
void
)
const
;
76
81
void
SetTargetEnb
(
Ptr<LteEnbNetDevice>
enb);
86
Ptr<LteEnbNetDevice>
GetTargetEnb
(
void
);
87
88
uint64_t
GetImsi
();
89
90
91
protected
:
92
// inherited from Object
93
virtual
void
DoStart
(
void
);
94
95
96
private
:
97
106
void
UpdateConfig
(
void
);
107
108
Ptr<LteEnbNetDevice>
m_targetEnb
;
109
110
Ptr<LteUeMac>
m_mac
;
111
Ptr<LteUePhy>
m_phy
;
112
Ptr<LteUeRrc>
m_rrc
;
113
114
uint64_t
m_imsi
;
115
static
uint64_t
m_imsiCounter
;
116
117
118
};
119
120
}
// namespace ns3
121
122
#endif
/* LTE_UE_NET_DEVICE_H */
src
lte
model
lte-ue-net-device.h
Generated on Fri Dec 21 2012 19:00:40 for ns-3 by
1.8.1.2