A Discrete-Event Network Simulator
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  */
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);
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 
116 
122 
123 
124 protected:
125  // inherited from Object
126  virtual void DoInitialize (void);
127 
128 
129 private:
131 
141  void UpdateConfig ();
142 
144 
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 */
Ptr< LteUeRrc > m_rrc
virtual ~LteUeNetDevice(void)
Ptr< LteUeRrc > GetRrc() const
uint64_t GetImsi() const
Ptr< LteEnbNetDevice > m_targetEnb
a polymophic address class
Definition: address.h:90
Ptr< EpcUeNas > m_nas
static TypeId GetTypeId(void)
virtual void DoDispose()
Destructor implementation.
void SetTargetEnb(Ptr< LteEnbNetDevice > enb)
Set the targer eNB where the UE is registered.
virtual void DoInitialize(void)
Initialize() implementation.
Ptr< LteUePhy > m_phy
Every class exported by the ns3 library is enclosed in the ns3 namespace.
void SetCsgId(uint32_t csgId)
Enlist the UE device as a member of a particular CSG.
uint16_t m_dlEarfcn
downlink carrier frequency
Ptr< LteEnbNetDevice > GetTargetEnb(void)
Get the targer eNB where the UE is registered.
Ptr< EpcUeNas > GetNas(void) const
uint16_t GetDlEarfcn() const
void SetDlEarfcn(uint16_t earfcn)
Ptr< LteUeMac > m_mac
void UpdateConfig()
Propagate attributes and configuration to sub-modules.
Ptr< LteUePhy > GetPhy(void) const
LteNetDevice provides basic implementation for all LTE network devices.
uint32_t GetCsgId() const
Returns the CSG ID the UE is currently a member of.
virtual bool Send(Ptr< Packet > packet, const Address &dest, uint16_t protocolNumber)
a unique identifier for an interface.
Definition: type-id.h:58
Ptr< LteUeMac > GetMac(void) const
The LteUeNetDevice class implements the UE net device.