A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
lte-rrc-protocol-real.h
Go to the documentation of this file.
1 /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
2 /*
3  * Copyright (c) 2012 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
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  * Authors: Nicola Baldo <nbaldo@cttc.es>
19  * Lluis Parcerisa <lparcerisa@cttc.cat>
20  */
21 
22 
23 #ifndef LTE_RRC_PROTOCOL_REAL_H
24 #define LTE_RRC_PROTOCOL_REAL_H
25 
26 #include <stdint.h>
27 #include <map>
28 
29 #include <ns3/ptr.h>
30 #include <ns3/object.h>
31 #include <ns3/lte-rrc-sap.h>
32 #include <ns3/lte-pdcp-sap.h>
33 #include <ns3/lte-rlc-sap.h>
34 #include <ns3/lte-rrc-header.h>
35 
36 namespace ns3 {
37 
38 class LteUeRrcSapProvider;
39 class LteUeRrcSapUser;
40 class LteEnbRrcSapProvider;
41 class LteUeRrc;
42 
43 
52 {
56 
57 public:
59  virtual ~LteUeRrcProtocolReal ();
60 
61  // inherited from Object
62  virtual void DoDispose (void);
63  static TypeId GetTypeId (void);
64 
67 
68  void SetUeRrc (Ptr<LteUeRrc> rrc);
69 
70 
71 private:
72  // methods forwarded from LteUeRrcSapUser
80 
81  void SetEnbRrcSapProvider ();
84 
86  uint16_t m_rnti;
90 
93 
94 };
95 
96 
105 {
110 
111 public:
113  virtual ~LteEnbRrcProtocolReal ();
114 
115  // inherited from Object
116  virtual void DoDispose (void);
117  static TypeId GetTypeId (void);
118 
121 
122  void SetCellId (uint16_t cellId);
123 
124  LteUeRrcSapProvider* GetUeRrcSapProvider (uint16_t rnti);
125  void SetUeRrcSapProvider (uint16_t rnti, LteUeRrcSapProvider* p);
126 
127 private:
128  // methods forwarded from LteEnbRrcSapUser
129  void DoSetupUe (uint16_t rnti, LteEnbRrcSapUser::SetupUeParameters params);
130  void DoRemoveUe (uint16_t rnti);
143 
145  void DoReceivePdcpPdu (uint16_t rnti, Ptr<Packet> p);
146 
147  uint16_t m_rnti;
148  uint16_t m_cellId;
151  std::map<uint16_t, LteUeRrcSapProvider*> m_enbRrcSapProviderMap;
152  std::map<uint16_t, LteEnbRrcSapUser::SetupUeParameters> m_setupUeParametersMap;
153  std::map<uint16_t, LteEnbRrcSapProvider::CompleteSetupUeParameters> m_completeSetupUeParametersMap;
154 
155 };
156 
158 
160 {
161 public:
162  RealProtocolRlcSapUser (LteEnbRrcProtocolReal* pdcp, uint16_t rnti);
163 
164  // Interface implemented from LteRlcSapUser
165  virtual void ReceivePdcpPdu (Ptr<Packet> p);
166 
167 private:
170  uint16_t m_rnti;
171 };
172 
173 
174 }
175 
176 
177 #endif // LTE_RRC_PROTOCOL_REAL_H
virtual void DoDispose(void)
This method is called by Object::Dispose or by the object's destructor, whichever comes first...
Service Access Point (SAP) offered by the UM-RLC and AM-RLC entities to the PDCP entity See 3GPP 36...
Definition: lte-rlc-sap.h:66
virtual void ReceivePdcpPdu(Ptr< Packet > p)
Called by the RLC entity to notify the PDCP entity of the reception of a new PDCP PDU...
void DoSetup(LteUeRrcSapUser::SetupParameters params)
void DoSendMeasurementReport(LteRrcSap::MeasurementReport msg)
smart pointer class similar to boost::intrusive_ptr
Definition: ptr.h:59
Part of the RRC protocol.
Definition: lte-rrc-sap.h:676
LteUeRrcSapProvider * m_ueRrcSapProvider
void DoSendRrcConnectionReject(uint16_t rnti, LteRrcSap::RrcConnectionReject msg)
void SendSystemInformation(LteRrcSap::SystemInformation msg)
virtual void DoDispose(void)
This method is called by Object::Dispose or by the object's destructor, whichever comes first...
void DoSendRrcConnectionRelease(uint16_t rnti, LteRrcSap::RrcConnectionRelease msg)
Part of the RRC protocol.
Definition: lte-rrc-sap.h:840
Models the transmission of RRC messages from the UE to the eNB in a real fashion, by creating real RR...
Template for the implementation of the LteEnbRrcSapUser as a member of an owner class of type C to wh...
Definition: lte-rrc-sap.h:1107
Ptr< Packet > DoEncodeHandoverCommand(LteRrcSap::RrcConnectionReconfiguration msg)
LteUeRrcSapProvider::CompleteSetupParameters m_completeSetupParameters
LteRrcSap::RrcConnectionReconfiguration DoDecodeHandoverCommand(Ptr< Packet > p)
Ptr< Packet > DoEncodeHandoverPreparationInformation(LteRrcSap::HandoverPreparationInfo msg)
LteUeRrcSapProvider * GetUeRrcSapProvider(uint16_t rnti)
Models the transmission of RRC messages from the UE to the eNB in a real fashion, by creating real RR...
std::map< uint16_t, LteEnbRrcSapUser::SetupUeParameters > m_setupUeParametersMap
std::map< uint16_t, LteUeRrcSapProvider * > m_enbRrcSapProviderMap
Parameters for LtePdcpSapUser::ReceivePdcpSdu.
Definition: lte-pdcp-sap.h:76
void SetLteEnbRrcSapProvider(LteEnbRrcSapProvider *p)
void DoSendRrcConnectionSetup(uint16_t rnti, LteRrcSap::RrcConnectionSetup msg)
void SetUeRrcSapProvider(uint16_t rnti, LteUeRrcSapProvider *p)
void DoSendRrcConnectionReestablishmentRequest(LteRrcSap::RrcConnectionReestablishmentRequest msg)
std::map< uint16_t, LteEnbRrcSapProvider::CompleteSetupUeParameters > m_completeSetupUeParametersMap
void DoReceivePdcpPdu(Ptr< Packet > p)
LteEnbRrcSapUser * GetLteEnbRrcSapUser()
Part of the RRC protocol.
Definition: lte-rrc-sap.h:752
void DoSendRrcConnectionReestablishmentReject(uint16_t rnti, LteRrcSap::RrcConnectionReestablishmentReject msg)
void DoSendRrcConnectionReconfiguration(uint16_t rnti, LteRrcSap::RrcConnectionReconfiguration msg)
void DoSendRrcConnectionReestablishment(uint16_t rnti, LteRrcSap::RrcConnectionReestablishment msg)
LteEnbRrcSapProvider * m_enbRrcSapProvider
void DoReceivePdcpSdu(LtePdcpSapUser::ReceivePdcpSduParameters params)
void DoSendRrcConnectionReestablishmentComplete(LteRrcSap::RrcConnectionReestablishmentComplete msg)
void DoSendRrcConnectionSetupCompleted(LteRrcSap::RrcConnectionSetupCompleted msg)
void DoSendRrcConnectionReconfigurationCompleted(LteRrcSap::RrcConnectionReconfigurationCompleted msg)
LteUeRrcSapUser::SetupParameters m_setupParameters
void DoSendRrcConnectionRequest(LteRrcSap::RrcConnectionRequest msg)
void DoReceivePdcpPdu(uint16_t rnti, Ptr< Packet > p)
LteRrcSap::HandoverPreparationInfo DoDecodeHandoverPreparationInformation(Ptr< Packet > p)
LteEnbRrcSapProvider * m_enbRrcSapProvider
void DoReceivePdcpSdu(LtePdcpSapUser::ReceivePdcpSduParameters params)
Template for the implementation of the LteUeRrcSapUser as a member of an owner class of type C to whi...
Definition: lte-rrc-sap.h:928
a base class which provides memory management and object aggregation
Definition: object.h:63
LteUeRrcSapUser * GetLteUeRrcSapUser()
Part of the RRC protocol.
Definition: lte-rrc-sap.h:608
LteEnbRrcProtocolReal * m_pdcp
void SetLteUeRrcSapProvider(LteUeRrcSapProvider *p)
a unique identifier for an interface.
Definition: type-id.h:49
void DoSetupUe(uint16_t rnti, LteEnbRrcSapUser::SetupUeParameters params)
void SetUeRrc(Ptr< LteUeRrc > rrc)
void DoSendSystemInformation(LteRrcSap::SystemInformation msg)