author | Lluis Parcerisa <parcerisa@gmail.com> |
Wed, 12 Dec 2012 18:48:24 +0100 | |
changeset 9510 | 1f57ceb87c95 |
parent 9495 | f8395c64d912 |
child 9601 | 869b6ed3ad40 |
permissions | -rw-r--r-- |
9446
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
1 |
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
2 |
/* |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
3 |
* Copyright (c) 2012 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC) |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
4 |
* |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
5 |
* This program is free software; you can redistribute it and/or modify |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
6 |
* it under the terms of the GNU General Public License version 2 as |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation; |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
8 |
* |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
9 |
* This program is distributed in the hope that it will be useful, |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
12 |
* GNU General Public License for more details. |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
13 |
* |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
14 |
* You should have received a copy of the GNU General Public License |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
15 |
* along with this program; if not, write to the Free Software |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
16 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
17 |
* |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
18 |
* Author: Nicola Baldo <nbaldo@cttc.es> |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
19 |
*/ |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
20 |
|
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
21 |
|
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
22 |
#ifndef LTE_RRC_PROTOCOL_REAL_H |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
23 |
#define LTE_RRC_PROTOCOL_REAL_H |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
24 |
|
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
25 |
#include <stdint.h> |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
26 |
#include <map> |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
27 |
|
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
28 |
#include <ns3/ptr.h> |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
29 |
#include <ns3/object.h> |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
30 |
#include <ns3/lte-rrc-sap.h> |
9471
082640d26eea
Implement real DoSendRrcConnectionSetupCompleted
Lluis Parcerisa <parcerisa@gmail.com>
parents:
9446
diff
changeset
|
31 |
#include <ns3/lte-pdcp-sap.h> |
082640d26eea
Implement real DoSendRrcConnectionSetupCompleted
Lluis Parcerisa <parcerisa@gmail.com>
parents:
9446
diff
changeset
|
32 |
#include <ns3/lte-rlc-sap.h> |
082640d26eea
Implement real DoSendRrcConnectionSetupCompleted
Lluis Parcerisa <parcerisa@gmail.com>
parents:
9446
diff
changeset
|
33 |
#include <ns3/lte-rrc-header.h> |
9446
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
34 |
|
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
35 |
namespace ns3 { |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
36 |
|
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
37 |
class LteUeRrcSapProvider; |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
38 |
class LteUeRrcSapUser; |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
39 |
class LteEnbRrcSapProvider; |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
40 |
class LteUeRrc; |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
41 |
|
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
42 |
|
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
43 |
/** |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
44 |
* Models the transmission of RRC messages from the UE to the eNB in |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
45 |
* a real fashion, by creating real RRC PDUs and transmitting them |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
46 |
* over Signaling Radio Bearers using radio resources allocated by the |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
47 |
* LTE MAC scheduler. |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
48 |
* |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
49 |
*/ |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
50 |
class LteUeRrcProtocolReal : public Object |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
51 |
{ |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
52 |
friend class MemberLteUeRrcSapUser<LteUeRrcProtocolReal>; |
9471
082640d26eea
Implement real DoSendRrcConnectionSetupCompleted
Lluis Parcerisa <parcerisa@gmail.com>
parents:
9446
diff
changeset
|
53 |
friend class LteRlcSpecificLteRlcSapUser<LteUeRrcProtocolReal>; |
082640d26eea
Implement real DoSendRrcConnectionSetupCompleted
Lluis Parcerisa <parcerisa@gmail.com>
parents:
9446
diff
changeset
|
54 |
friend class LtePdcpSpecificLtePdcpSapUser<LteUeRrcProtocolReal>; |
9495 | 55 |
|
9446
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
56 |
public: |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
57 |
LteUeRrcProtocolReal (); |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
58 |
virtual ~LteUeRrcProtocolReal (); |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
59 |
|
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
60 |
// inherited from Object |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
61 |
virtual void DoDispose (void); |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
62 |
static TypeId GetTypeId (void); |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
63 |
|
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
64 |
void SetLteUeRrcSapProvider (LteUeRrcSapProvider* p); |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
65 |
LteUeRrcSapUser* GetLteUeRrcSapUser (); |
9495 | 66 |
|
9446
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
67 |
void SetUeRrc (Ptr<LteUeRrc> rrc); |
9495 | 68 |
|
9446
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
69 |
|
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
70 |
private: |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
71 |
// methods forwarded from LteUeRrcSapUser |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
72 |
void DoSetup (LteUeRrcSapUser::SetupParameters params); |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
73 |
void DoReestablish (); |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
74 |
void DoSendRrcConnectionRequest (LteRrcSap::RrcConnectionRequest msg); |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
75 |
void DoSendRrcConnectionSetupCompleted (LteRrcSap::RrcConnectionSetupCompleted msg); |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
76 |
void DoSendRrcConnectionReconfigurationCompleted (LteRrcSap::RrcConnectionReconfigurationCompleted msg); |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
77 |
void DoSendRrcConnectionReestablishmentRequest (LteRrcSap::RrcConnectionReestablishmentRequest msg); |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
78 |
void DoSendRrcConnectionReestablishmentComplete (LteRrcSap::RrcConnectionReestablishmentComplete msg); |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
79 |
|
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
80 |
void SetEnbRrcSapProvider (); |
9471
082640d26eea
Implement real DoSendRrcConnectionSetupCompleted
Lluis Parcerisa <parcerisa@gmail.com>
parents:
9446
diff
changeset
|
81 |
void DoReceivePdcpPdu (Ptr<Packet> p); |
082640d26eea
Implement real DoSendRrcConnectionSetupCompleted
Lluis Parcerisa <parcerisa@gmail.com>
parents:
9446
diff
changeset
|
82 |
void DoReceivePdcpSdu (LtePdcpSapUser::ReceivePdcpSduParameters params); |
9446
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
83 |
|
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
84 |
Ptr<LteUeRrc> m_rrc; |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
85 |
uint16_t m_rnti; |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
86 |
LteUeRrcSapProvider* m_ueRrcSapProvider; |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
87 |
LteUeRrcSapUser* m_ueRrcSapUser; |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
88 |
LteEnbRrcSapProvider* m_enbRrcSapProvider; |
9495 | 89 |
|
9471
082640d26eea
Implement real DoSendRrcConnectionSetupCompleted
Lluis Parcerisa <parcerisa@gmail.com>
parents:
9446
diff
changeset
|
90 |
LteUeRrcSapUser::SetupParameters m_setupParameters; |
082640d26eea
Implement real DoSendRrcConnectionSetupCompleted
Lluis Parcerisa <parcerisa@gmail.com>
parents:
9446
diff
changeset
|
91 |
LteUeRrcSapProvider::CompleteSetupParameters m_completeSetupParameters; |
9495 | 92 |
|
9446
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
93 |
}; |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
94 |
|
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
95 |
|
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
96 |
/** |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
97 |
* Models the transmission of RRC messages from the UE to the eNB in |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
98 |
* a real fashion, by creating real RRC PDUs and transmitting them |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
99 |
* over Signaling Radio Bearers using radio resources allocated by the |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
100 |
* LTE MAC scheduler. |
9495 | 101 |
* |
9446
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
102 |
*/ |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
103 |
class LteEnbRrcProtocolReal : public Object |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
104 |
{ |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
105 |
friend class MemberLteEnbRrcSapUser<LteEnbRrcProtocolReal>; |
9471
082640d26eea
Implement real DoSendRrcConnectionSetupCompleted
Lluis Parcerisa <parcerisa@gmail.com>
parents:
9446
diff
changeset
|
106 |
friend class LtePdcpSpecificLtePdcpSapUser<LteEnbRrcProtocolReal>; |
082640d26eea
Implement real DoSendRrcConnectionSetupCompleted
Lluis Parcerisa <parcerisa@gmail.com>
parents:
9446
diff
changeset
|
107 |
friend class LteRlcSpecificLteRlcSapUser<LteEnbRrcProtocolReal>; |
9495 | 108 |
friend class RealProtocolRlcSapUser; |
109 |
||
9446
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
110 |
public: |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
111 |
LteEnbRrcProtocolReal (); |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
112 |
virtual ~LteEnbRrcProtocolReal (); |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
113 |
|
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
114 |
// inherited from Object |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
115 |
virtual void DoDispose (void); |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
116 |
static TypeId GetTypeId (void); |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
117 |
|
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
118 |
void SetLteEnbRrcSapProvider (LteEnbRrcSapProvider* p); |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
119 |
LteEnbRrcSapUser* GetLteEnbRrcSapUser (); |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
120 |
|
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
121 |
void SetCellId (uint16_t cellId); |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
122 |
|
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
123 |
LteUeRrcSapProvider* GetUeRrcSapProvider (uint16_t rnti); |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
124 |
void SetUeRrcSapProvider (uint16_t rnti, LteUeRrcSapProvider* p); |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
125 |
|
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
126 |
private: |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
127 |
// methods forwarded from LteEnbRrcSapUser |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
128 |
void DoSetupUe (uint16_t rnti, LteEnbRrcSapUser::SetupUeParameters params); |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
129 |
void DoRemoveUe (uint16_t rnti); |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
130 |
void DoSendMasterInformationBlock (LteRrcSap::MasterInformationBlock msg); |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
131 |
void DoSendSystemInformationBlockType1 (LteRrcSap::SystemInformationBlockType1 msg); |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
132 |
void DoSendSystemInformation (LteRrcSap::SystemInformation msg); |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
133 |
void SendSystemInformation (LteRrcSap::SystemInformation msg); |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
134 |
void DoSendRrcConnectionSetup (uint16_t rnti, LteRrcSap::RrcConnectionSetup msg); |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
135 |
void DoSendRrcConnectionReconfiguration (uint16_t rnti, LteRrcSap::RrcConnectionReconfiguration msg); |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
136 |
void DoSendRrcConnectionReestablishment (uint16_t rnti, LteRrcSap::RrcConnectionReestablishment msg); |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
137 |
void DoSendRrcConnectionReestablishmentReject (uint16_t rnti, LteRrcSap::RrcConnectionReestablishmentReject msg); |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
138 |
void DoSendRrcConnectionRelease (uint16_t rnti, LteRrcSap::RrcConnectionRelease msg); |
9510
1f57ceb87c95
Add functions in SAP's to send/receive ConnRej msg.
Lluis Parcerisa <parcerisa@gmail.com>
parents:
9495
diff
changeset
|
139 |
void DoSendRrcConnectionReject (uint16_t rnti, LteRrcSap::RrcConnectionReject msg); |
9446
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
140 |
Ptr<Packet> DoEncodeHandoverPreparationInformation (LteRrcSap::HandoverPreparationInfo msg); |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
141 |
LteRrcSap::HandoverPreparationInfo DoDecodeHandoverPreparationInformation (Ptr<Packet> p); |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
142 |
Ptr<Packet> DoEncodeHandoverCommand (LteRrcSap::RrcConnectionReconfiguration msg); |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
143 |
LteRrcSap::RrcConnectionReconfiguration DoDecodeHandoverCommand (Ptr<Packet> p); |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
144 |
|
9471
082640d26eea
Implement real DoSendRrcConnectionSetupCompleted
Lluis Parcerisa <parcerisa@gmail.com>
parents:
9446
diff
changeset
|
145 |
void DoReceivePdcpSdu (LtePdcpSapUser::ReceivePdcpSduParameters params); |
9495 | 146 |
void DoReceivePdcpPdu (uint16_t rnti, Ptr<Packet> p); |
9446
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
147 |
|
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
148 |
uint16_t m_rnti; |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
149 |
uint16_t m_cellId; |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
150 |
LteEnbRrcSapProvider* m_enbRrcSapProvider; |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
151 |
LteEnbRrcSapUser* m_enbRrcSapUser; |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
152 |
std::map<uint16_t, LteUeRrcSapProvider*> m_enbRrcSapProviderMap; |
9471
082640d26eea
Implement real DoSendRrcConnectionSetupCompleted
Lluis Parcerisa <parcerisa@gmail.com>
parents:
9446
diff
changeset
|
153 |
std::map<uint16_t, LteEnbRrcSapUser::SetupUeParameters> m_setupUeParametersMap; |
082640d26eea
Implement real DoSendRrcConnectionSetupCompleted
Lluis Parcerisa <parcerisa@gmail.com>
parents:
9446
diff
changeset
|
154 |
std::map<uint16_t, LteEnbRrcSapProvider::CompleteSetupUeParameters> m_completeSetupUeParametersMap; |
9495 | 155 |
|
9446
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
156 |
}; |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
157 |
|
9494
32b848e2f512
Create RealProtocolRlcSapUser to store RNTI as a member when constructing the object.
Lluis Parcerisa <parcerisa@gmail.com>
parents:
9471
diff
changeset
|
158 |
/////////////////////////////////////// |
32b848e2f512
Create RealProtocolRlcSapUser to store RNTI as a member when constructing the object.
Lluis Parcerisa <parcerisa@gmail.com>
parents:
9471
diff
changeset
|
159 |
|
32b848e2f512
Create RealProtocolRlcSapUser to store RNTI as a member when constructing the object.
Lluis Parcerisa <parcerisa@gmail.com>
parents:
9471
diff
changeset
|
160 |
class RealProtocolRlcSapUser : public LteRlcSapUser |
32b848e2f512
Create RealProtocolRlcSapUser to store RNTI as a member when constructing the object.
Lluis Parcerisa <parcerisa@gmail.com>
parents:
9471
diff
changeset
|
161 |
{ |
32b848e2f512
Create RealProtocolRlcSapUser to store RNTI as a member when constructing the object.
Lluis Parcerisa <parcerisa@gmail.com>
parents:
9471
diff
changeset
|
162 |
public: |
32b848e2f512
Create RealProtocolRlcSapUser to store RNTI as a member when constructing the object.
Lluis Parcerisa <parcerisa@gmail.com>
parents:
9471
diff
changeset
|
163 |
RealProtocolRlcSapUser (LteEnbRrcProtocolReal* pdcp, uint16_t rnti); |
32b848e2f512
Create RealProtocolRlcSapUser to store RNTI as a member when constructing the object.
Lluis Parcerisa <parcerisa@gmail.com>
parents:
9471
diff
changeset
|
164 |
|
32b848e2f512
Create RealProtocolRlcSapUser to store RNTI as a member when constructing the object.
Lluis Parcerisa <parcerisa@gmail.com>
parents:
9471
diff
changeset
|
165 |
// Interface implemented from LteRlcSapUser |
32b848e2f512
Create RealProtocolRlcSapUser to store RNTI as a member when constructing the object.
Lluis Parcerisa <parcerisa@gmail.com>
parents:
9471
diff
changeset
|
166 |
virtual void ReceivePdcpPdu (Ptr<Packet> p); |
32b848e2f512
Create RealProtocolRlcSapUser to store RNTI as a member when constructing the object.
Lluis Parcerisa <parcerisa@gmail.com>
parents:
9471
diff
changeset
|
167 |
|
32b848e2f512
Create RealProtocolRlcSapUser to store RNTI as a member when constructing the object.
Lluis Parcerisa <parcerisa@gmail.com>
parents:
9471
diff
changeset
|
168 |
private: |
32b848e2f512
Create RealProtocolRlcSapUser to store RNTI as a member when constructing the object.
Lluis Parcerisa <parcerisa@gmail.com>
parents:
9471
diff
changeset
|
169 |
RealProtocolRlcSapUser (); |
32b848e2f512
Create RealProtocolRlcSapUser to store RNTI as a member when constructing the object.
Lluis Parcerisa <parcerisa@gmail.com>
parents:
9471
diff
changeset
|
170 |
LteEnbRrcProtocolReal* m_pdcp; |
32b848e2f512
Create RealProtocolRlcSapUser to store RNTI as a member when constructing the object.
Lluis Parcerisa <parcerisa@gmail.com>
parents:
9471
diff
changeset
|
171 |
uint16_t m_rnti; |
32b848e2f512
Create RealProtocolRlcSapUser to store RNTI as a member when constructing the object.
Lluis Parcerisa <parcerisa@gmail.com>
parents:
9471
diff
changeset
|
172 |
}; |
9446
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
173 |
|
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
174 |
|
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
175 |
} |
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
176 |
|
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
177 |
|
fcc2c9f5a011
added stub of LteRrcProtocolReal with corresponding tests
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
178 |
#endif // LTE_RRC_PROTOCOL_REAL_H |