A Discrete-Event Network Simulator
API
lte-rrc-protocol-ideal.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  * Author: Nicola Baldo <nbaldo@cttc.es>
19  */
20 
21 
22 #ifndef LTE_RRC_PROTOCOL_IDEAL_H
23 #define LTE_RRC_PROTOCOL_IDEAL_H
24 
25 #include <stdint.h>
26 #include <map>
27 
28 #include <ns3/ptr.h>
29 #include <ns3/object.h>
30 #include <ns3/lte-rrc-sap.h>
31 
32 namespace ns3 {
33 
34 class LteUeRrcSapProvider;
35 class LteUeRrcSapUser;
36 class LteEnbRrcSapProvider;
37 class LteUeRrc;
38 
39 
47 {
49 
50 public:
51 
53  virtual ~LteUeRrcProtocolIdeal ();
54 
55  // inherited from Object
56  virtual void DoDispose (void);
57  static TypeId GetTypeId (void);
58 
61 
62  void SetUeRrc (Ptr<LteUeRrc> rrc);
63 
64 
65 private:
66 
67  // methods forwarded from LteUeRrcSapUser
75 
76  void SetEnbRrcSapProvider ();
77 
79  uint16_t m_rnti;
83 
84 };
85 
86 
94 {
96 
97 public:
98 
100  virtual ~LteEnbRrcProtocolIdeal ();
101 
102  // inherited from Object
103  virtual void DoDispose (void);
104  static TypeId GetTypeId (void);
105 
108 
109  void SetCellId (uint16_t cellId);
110 
111  LteUeRrcSapProvider* GetUeRrcSapProvider (uint16_t rnti);
112  void SetUeRrcSapProvider (uint16_t rnti, LteUeRrcSapProvider* p);
113 
114 private:
115 
116  // methods forwarded from LteEnbRrcSapUser
117  void DoSetupUe (uint16_t rnti, LteEnbRrcSapUser::SetupUeParameters params);
118  void DoRemoveUe (uint16_t rnti);
131 
132 
133  uint16_t m_rnti;
134  uint16_t m_cellId;
137  std::map<uint16_t, LteUeRrcSapProvider*> m_enbRrcSapProviderMap;
138 
139 };
140 
141 
142 
143 }
144 
145 
146 #endif // LTE_RRC_PROTOCOL_IDEAL_H
LteUeRrcSapProvider * m_ueRrcSapProvider
void DoSendRrcConnectionReestablishmentReject(uint16_t rnti, LteRrcSap::RrcConnectionReestablishmentReject msg)
LteEnbRrcSapProvider * m_enbRrcSapProvider
Smart pointer class similar to boost::intrusive_ptr.
Definition: ptr.h:73
Part of the RRC protocol.
Definition: lte-rrc-sap.h:739
void DoSendRrcConnectionReconfigurationCompleted(LteRrcSap::RrcConnectionReconfigurationCompleted msg)
void DoSendRrcConnectionReestablishmentRequest(LteRrcSap::RrcConnectionReestablishmentRequest msg)
virtual void DoDispose(void)
Destructor implementation.
void DoSendRrcConnectionReconfiguration(uint16_t rnti, LteRrcSap::RrcConnectionReconfiguration msg)
Part of the RRC protocol.
Definition: lte-rrc-sap.h:903
void DoSendRrcConnectionRelease(uint16_t rnti, LteRrcSap::RrcConnectionRelease msg)
void SetUeRrc(Ptr< LteUeRrc > rrc)
void SetLteEnbRrcSapProvider(LteEnbRrcSapProvider *p)
Template for the implementation of the LteEnbRrcSapUser as a member of an owner class of type C to wh...
Definition: lte-rrc-sap.h:1170
void DoSendRrcConnectionSetup(uint16_t rnti, LteRrcSap::RrcConnectionSetup msg)
void SetLteUeRrcSapProvider(LteUeRrcSapProvider *p)
void DoSetupUe(uint16_t rnti, LteEnbRrcSapUser::SetupUeParameters params)
void DoSendSystemInformation(LteRrcSap::SystemInformation msg)
Ptr< Packet > DoEncodeHandoverPreparationInformation(LteRrcSap::HandoverPreparationInfo msg)
void DoSendRrcConnectionSetupCompleted(LteRrcSap::RrcConnectionSetupCompleted msg)
void DoSendRrcConnectionRequest(LteRrcSap::RrcConnectionRequest msg)
std::map< uint16_t, LteUeRrcSapProvider * > m_enbRrcSapProviderMap
LteRrcSap::HandoverPreparationInfo DoDecodeHandoverPreparationInformation(Ptr< Packet > p)
Models the transmission of RRC messages from the UE to the eNB in an ideal fashion, without errors and without consuming any radio resources.
Part of the RRC protocol.
Definition: lte-rrc-sap.h:815
Every class exported by the ns3 library is enclosed in the ns3 namespace.
LteUeRrcSapUser * GetLteUeRrcSapUser()
LteUeRrcSapProvider * GetUeRrcSapProvider(uint16_t rnti)
LteRrcSap::RrcConnectionReconfiguration DoDecodeHandoverCommand(Ptr< Packet > p)
void DoSendRrcConnectionReject(uint16_t rnti, LteRrcSap::RrcConnectionReject msg)
void DoSetup(LteUeRrcSapUser::SetupParameters params)
void SendSystemInformation(LteRrcSap::SystemInformation msg)
void DoSendRrcConnectionReestablishmentComplete(LteRrcSap::RrcConnectionReestablishmentComplete msg)
void DoSendRrcConnectionReestablishment(uint16_t rnti, LteRrcSap::RrcConnectionReestablishment msg)
void SetUeRrcSapProvider(uint16_t rnti, LteUeRrcSapProvider *p)
virtual void DoDispose(void)
Destructor implementation.
LteEnbRrcSapProvider * m_enbRrcSapProvider
Template for the implementation of the LteUeRrcSapUser as a member of an owner class of type C to whi...
Definition: lte-rrc-sap.h:991
A base class which provides memory management and object aggregation.
Definition: object.h:87
Ptr< Packet > DoEncodeHandoverCommand(LteRrcSap::RrcConnectionReconfiguration msg)
Part of the RRC protocol.
Definition: lte-rrc-sap.h:671
LteEnbRrcSapUser * GetLteEnbRrcSapUser()
a unique identifier for an interface.
Definition: type-id.h:58
void DoSendMeasurementReport(LteRrcSap::MeasurementReport msg)
Models the transmission of RRC messages from the UE to the eNB in an ideal fashion, without errors and without consuming any radio resources.