A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
lte-ue-net-device.h
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 
52 {
53 
54 public:
55  static TypeId GetTypeId (void);
56 
57  LteUeNetDevice (void);
68  LteUeNetDevice (Ptr<Node> node, Ptr<LteUePhy> phy, Ptr<LteUeMac> mac, Ptr<LteUeRrc> rrc, Ptr<EpcUeNas> nas, uint64_t imsi);
69 
70  virtual ~LteUeNetDevice (void);
71  virtual void DoDispose ();
72 
73 
74  // inherited from NetDevice
75  virtual bool Send (Ptr<Packet> packet, const Address& dest, uint16_t protocolNumber);
76 
77 
78  Ptr<LteUeMac> GetMac (void) const;
79 
80  Ptr<LteUeRrc> GetRrc () const ;
81 
82  Ptr<LteUePhy> GetPhy (void) const;
83 
84  Ptr<EpcUeNas> GetNas (void) const;
85 
86  uint64_t GetImsi () const;
87 
88 
94 
100 
101 
102 protected:
103  // inherited from Object
104  virtual void DoInitialize (void);
105 
106 
107 private:
108 
117  void UpdateConfig (void);
118 
119  Ptr<LteEnbNetDevice> m_targetEnb;
120 
121  Ptr<LteUeMac> m_mac;
122  Ptr<LteUePhy> m_phy;
123  Ptr<LteUeRrc> m_rrc;
124  Ptr<EpcUeNas> m_nas;
125 
126  uint64_t m_imsi;
127 
128 };
129 
130 } // namespace ns3
131 
132 #endif /* LTE_UE_NET_DEVICE_H */
a polymophic address class
Definition: address.h:86
virtual void DoDispose()
void SetTargetEnb(Ptr< LteEnbNetDevice > enb)
Set the targer eNB where the UE is registered.
virtual void DoInitialize(void)
Ptr< LteEnbNetDevice > GetTargetEnb(void)
Get the targer eNB where the UE is registered.
virtual bool Send(Ptr< Packet > packet, const Address &dest, uint16_t protocolNumber)
a unique identifier for an interface.
Definition: type-id.h:44