Left: | ||
Right: |
OLD | NEW |
---|---|
1 /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2010 TELEMATICS LAB, DEE - Politecnico di Bari | 3 * Copyright (c) 2010 TELEMATICS LAB, DEE - Politecnico di Bari |
4 * | 4 * |
5 * This program is free software; you can redistribute it and/or modify | 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 | 6 * it under the terms of the GNU General Public License version 2 as |
7 * published by the Free Software Foundation; | 7 * published by the Free Software Foundation; |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 13 matching lines...) Expand all Loading... | |
24 #include "ns3/ptr.h" | 24 #include "ns3/ptr.h" |
25 #include "ns3/simple-ref-count.h" | 25 #include "ns3/simple-ref-count.h" |
26 #include <list> | 26 #include <list> |
27 | 27 |
28 namespace ns3 { | 28 namespace ns3 { |
29 | 29 |
30 class LteNetDevice; | 30 class LteNetDevice; |
31 | 31 |
32 | 32 |
33 /** | 33 /** |
34 * \ingroup lte | |
35 * | |
36 * The IdealControlMessage provides a basic implementations for | 34 * The IdealControlMessage provides a basic implementations for |
37 * control messages (such as PDCCH allocation map, CQI feedbacks) | 35 * control messages (such as PDCCH allocation map, CQI feedbacks) |
38 * that are exchanged among eNodeB and UEs. | 36 * that are exchanged among eNodeB and UEs. |
39 */ | 37 */ |
40 class IdealControlMessage : public SimpleRefCount<IdealControlMessage> | 38 class IdealControlMessage : public SimpleRefCount<IdealControlMessage> |
41 { | 39 { |
42 public: | 40 public: |
43 | 41 |
44 /** | 42 /** |
45 * The type of the message | 43 * The type of the message |
46 */ | 44 */ |
47 enum MessageType | 45 enum MessageType |
48 { | 46 { |
49 CQI_FEEDBACKS, ALLOCATION_MAP | 47 CQI_FEEDBACKS, ALLOCATION_MAP,SYSTEM_INFO, PAGING, RRC_ESTABLISHMENT, RRC_CO NNC_RECONFIG, RRC_CONC_RELEASE |
mmezzavilla
2011/07/22 10:09:11
RRC_CONNC_RECONFIG and RRC_CONC_RELEASE refer to c
pankaj
2011/08/01 18:31:24
updated as per suggestion.
| |
50 }; | 48 }; |
51 | 49 |
52 IdealControlMessage (void); | 50 IdealControlMessage (void); |
53 virtual ~IdealControlMessage (void); | 51 virtual ~IdealControlMessage (void); |
54 | 52 |
55 /** | 53 /** |
56 * \brief Set the source device of the message | 54 * \brief Set the source device of the message |
57 * \param src the device that sends the message | 55 * \param src the device that sends the message |
58 */ | 56 */ |
59 void SetSourceDevice (Ptr<LteNetDevice> src); | 57 void SetSourceDevice (Ptr<LteNetDevice> src); |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
104 #define PDCCH_MAP_IDEAL_CONTROL_MESSAGES_H | 102 #define PDCCH_MAP_IDEAL_CONTROL_MESSAGES_H |
105 | 103 |
106 #include "ns3/object.h" | 104 #include "ns3/object.h" |
107 #include <list> | 105 #include <list> |
108 | 106 |
109 namespace ns3 { | 107 namespace ns3 { |
110 | 108 |
111 class LteNetDevice; | 109 class LteNetDevice; |
112 | 110 |
113 /** | 111 /** |
114 * \ingroup lte | |
115 * | |
116 * \brief The PdcchMapIdealControlMessage defines an ideal allocation map | 112 * \brief The PdcchMapIdealControlMessage defines an ideal allocation map |
117 * for both UL and DL sends by the eNodeB to all UE, | 113 * for both UL and DL sends by the eNodeB to all UE, |
118 * using an ideal PDCCH control channel. | 114 * using an ideal PDCCH control channel. |
119 * IdealPdcchMessage is composed by a list of IdealPdcchRecord | 115 * IdealPdcchMessage is composed by a list of IdealPdcchRecord |
120 * where is indicated the UE that can use a particular sub channel | 116 * where is indicated the UE that can use a particular sub channel |
121 * with a proper MCS scheme. | 117 * with a proper MCS scheme. |
122 * This records are the same for both UL and DL, and are created by the | 118 * This records are the same for both UL and DL, and are created by the |
123 * packet scheduler at the beginning of each sub frame. | 119 * packet scheduler at the beginning of each sub frame. |
124 * When the IdealPdcchMessage is sent under an ideal control channel, | 120 * When the IdealPdcchMessage is sent under an ideal control channel, |
125 * all UE stores into a proper variables the informations about | 121 * all UE stores into a proper variables the informations about |
(...skipping 15 matching lines...) Expand all Loading... | |
141 }; | 137 }; |
142 | 138 |
143 /** | 139 /** |
144 * The PDCCH ideal record | 140 * The PDCCH ideal record |
145 */ | 141 */ |
146 struct IdealPdcchRecord | 142 struct IdealPdcchRecord |
147 { | 143 { |
148 /** the direction */ | 144 /** the direction */ |
149 Direction m_direction; | 145 Direction m_direction; |
150 /** the sub channel */· | 146 /** the sub channel */· |
151 int m_idSubChannel; | 147 int m_idSubChannel; |
152 /** the ue that receive the mapping */ | 148 /** the ue that receive the mapping */ |
153 Ptr<LteNetDevice> m_ue; | 149 Ptr<LteNetDevice> m_ue; |
154 /** the selected msc */ | 150 /** the selected msc */ |
155 double m_mcsIndex; | 151 double m_mcsIndex; |
156 }; | 152 }; |
157 | 153 |
158 /** | 154 /** |
159 * The PDCCH ideal message | 155 * The PDCCH ideal message |
160 */ | 156 */ |
161 typedef std::list<struct IdealPdcchRecord> IdealPdcchMessage; | 157 typedef std::list<struct IdealPdcchRecord> IdealPdcchMessage; |
162 | 158 |
163 /** | 159 /** |
164 * \brief add a PDCCH record into the message. | 160 * \brief add a PDCCH record into the message. |
165 * \param direction the direction of the map | 161 * \param direction the direction of the map |
(...skipping 28 matching lines...) Expand all Loading... | |
194 #define CQI_IDEAL_CONTROL_MESSAGES_H | 190 #define CQI_IDEAL_CONTROL_MESSAGES_H |
195 | 191 |
196 #include "ns3/object.h" | 192 #include "ns3/object.h" |
197 #include <list> | 193 #include <list> |
198 | 194 |
199 namespace ns3 { | 195 namespace ns3 { |
200 | 196 |
201 class LteNetDevice; | 197 class LteNetDevice; |
202 | 198 |
203 /** | 199 /** |
204 * \ingroup lte | |
205 * | |
206 * The CqiIdealControlMessage defines an ideal list of feedback about | 200 * The CqiIdealControlMessage defines an ideal list of feedback about |
207 * the channel quality sent by the UE to the eNodeB. | 201 * the channel quality sent by the UE to the eNodeB. |
208 */ | 202 */ |
209 class CqiIdealControlMessage : public IdealControlMessage | 203 class CqiIdealControlMessage : public IdealControlMessage |
210 { | 204 { |
211 public: | 205 public: |
212 | 206 |
213 CqiIdealControlMessage (void); | 207 CqiIdealControlMessage (void); |
214 virtual ~CqiIdealControlMessage (void); | 208 virtual ~CqiIdealControlMessage (void); |
215 | 209 |
(...skipping 26 matching lines...) Expand all Loading... | |
242 */ | 236 */ |
243 CqiFeedbacks* GetMessage (void); | 237 CqiFeedbacks* GetMessage (void); |
244 | 238 |
245 | 239 |
246 private: | 240 private: |
247 CqiFeedbacks *m_cqiFeedbacks; | 241 CqiFeedbacks *m_cqiFeedbacks; |
248 }; | 242 }; |
249 } // namespace ns3 | 243 } // namespace ns3 |
250 | 244 |
251 #endif /* CQI_IDEAL_CONTROL_MESSAGES_H */ | 245 #endif /* CQI_IDEAL_CONTROL_MESSAGES_H */ |
OLD | NEW |