Left: | ||
Right: |
OLD | NEW |
---|---|
(Empty) | |
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ | |
Piro Giuseppe
2011/08/22 11:30:37
Why did you chosen for these file the name "enb-rr
pankaj
2011/09/06 06:05:39
cp is for the control plane. It can be changed.
| |
2 /* | |
3 * Copyright (c) 2011 VEICET, IIT Kharagpur | |
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: Pankaj Kumar Gupta email: pankaj303er@gmail.com | |
19 */ | |
20 | |
21 | |
22 | |
23 #ifndef ENB_RRC_CP_ENTITY_H | |
24 #define ENB_RRC_CP_ENTITY_H | |
25 | |
26 #include "ns3/object.h" | |
27 #include <list> | |
28 #include "radio-bearer-instance.h" | |
29 #include <vector> | |
30 #include "rrc-entity.h" | |
31 //#include "ideal-control-messages.h" | |
Piro Giuseppe
2011/08/22 11:30:37
if it is not necessary, delete it!
pankaj
2011/09/06 06:05:39
Done.
| |
32 #include "rrc-ideal-control-messages.h" | |
33 #include "lte-net-device.h" | |
34 | |
35 namespace ns3 { | |
36 class LteNetDevice; | |
37 class IdealControlMessage; | |
38 class RrcIdealConnectionreq; | |
39 class RrcConnectionReject; | |
40 class EnbNetDevice; | |
41 class UeNetDevice; | |
42 | |
43 /** | |
44 * \brief This class implements the RRC control entity for eNodeB | |
45 * Establishing and maintaining RRC Control plane Entity | |
46 */ | |
47 | |
48 | |
49 class EnbLteRrc : public RrcEntity | |
Piro Giuseppe
2011/08/22 11:30:37
I suggest to use the name EnbRrcEntity
pankaj
2011/09/06 06:05:39
done.
| |
50 { | |
51 public: | |
52 | |
53 /** | |
54 * RRC states | |
55 */ | |
56 | |
57 enum RrcStates { | |
58 RRC_CONNECTED, | |
59 RRC_IDLE, | |
60 }; | |
61 | |
62 struct EnbRrcRecord { | |
Piro Giuseppe
2011/08/22 11:30:37
A documentation to the utility of this record shou
| |
63 /** radio bearrer id*/ | |
64 int radio_bearerid; | |
65 | |
66 /**RRC state */ | |
67 RrcStates m_rrcState; | |
68 | |
69 /**S-Temproray mobile subscriber identity*/ | |
70 int m_ueIdentity; | |
71 | |
72 /** signalling bearer over which it is sent */ | |
73 RrcConnectionReject::SignallingBearer m_signallingBearer; | |
74 | |
75 /** Downlink bandwidth*/ | |
76 SystemInfoMIB::Bandwidth m_dlbandwidth; | |
77 | |
78 /** radio bearrer id*/ | |
79 int m_cellid; | |
80 | |
81 /**plmn identity */ | |
82 int m_plmnIdentity; | |
83 }; | |
84 | |
85 | |
86 static TypeId GetTypeId(void); | |
87 EnbLteRrc (void); | |
88 virtual ~EnbLteRrc (void); | |
89 | |
90 /** | |
91 * \brief To get the RRC state of UE | |
92 */ | |
93 RrcStates GetRrcState(); | |
94 | |
95 /** | |
96 * \brief To send the RRC control message to UE | |
97 * \param msg pointer to the rrc ideal control message | |
98 */ | |
99 | |
100 virtual void SendRrcIdealControlMessage(Ptr<IdealControlMessage> msg); | |
101 | |
102 /** | |
103 * \brief Function to process rrc control signal recieved at eNodeB | |
104 * \param msg pointer to the rrc ideal control message | |
105 */ | |
106 | |
107 virtual void ReceiveRrcIdealControlMessage(Ptr <IdealControlMessage> msg); | |
108 | |
109 /** | |
110 * \brief To send the Master system information message to UE | |
111 * \param bandwidth downlink bandwidth·· | |
112 * \param sfn system frame number | |
113 * \param dst destination device | |
114 * \param src source device | |
115 */ | |
116 | |
117 void EnbSendSystemInfoMIBMessage(SystemInfoMIB::Bandwidth bandwidth, int sfn , P tr<UeNetDevice> dst , Ptr<EnbNetDevice> src ); | |
118 | |
Piro Giuseppe
2011/08/22 11:30:37
It is not necessary to add the prefix "ENB" to all
pankaj
2011/09/06 06:05:39
ok
| |
119 /** | |
120 * \brief To send the system information message to UE | |
121 * \param cellid cell identity· | |
122 * \param plmnid plmn identity | |
123 * \param dst destination device | |
124 * \param src source device | |
125 */ | |
126 | |
127 void EnbSendSystemInfoSIBMessage(int cellid, int plmnid ,Ptr<UeNetDevice> dst , Ptr<EnbNetDevice> src ); | |
128 | |
129 /** | |
130 * \brief To send thepaging message to UE | |
131 * \param s-TMSI· | |
132 * \param dst destination device | |
133 * \param src source device | |
134 */ | |
135 | |
136 void EnbSendPagingControlMessage(int stmsi,Ptr<UeNetDevice> dst , Ptr<EnbNetDevi ce> src); | |
137 | |
138 /** | |
139 * \brief To Recieve and process the RRC connection request message send by UE | |
140 * \param msg pointer to ideal control messages· | |
141 */ | |
142 | |
143 | |
144 void EnbRecieveRrcConnectReq(Ptr<IdealControlMessage> msg); | |
145 | |
146 /** | |
147 * \brief To Recieve and process the RRC connection reject message send by UE | |
148 * \param msg pointer to RrcConnectionReject· | |
149 */ | |
150 | |
151 void EnbRecieveRrcReject(Ptr<RrcConnectionReject> msg); | |
152 | |
153 /** | |
154 * \brief To Recieve and process the RRC connection reconfiguration message sen d by UE | |
155 * \param msg pointer to RrcConnectionReConfiguration· | |
156 */ | |
157 | |
158 void EnbRecieveRrcReConfig(Ptr<RrcConnectionReConfiguration> msg); | |
Piro Giuseppe
2011/08/22 11:30:37
ReConfig -> do not use short name
pankaj
2011/09/06 06:05:39
updated
| |
159 | |
160 private: | |
161 | |
162 /** | |
163 * \brief RRC State information | |
164 */ | |
165 | |
166 RrcStates m_rrcStateInfo; | |
Piro Giuseppe
2011/08/22 11:30:37
Define this object as a pointer and add it definit
pankaj
2011/09/06 06:05:39
Done.
| |
167 }; | |
168 } | |
169 | |
170 | |
171 #endif /*ENB_RRC_CP_ENTITY_H*/ | |
172 | |
OLD | NEW |