LEFT | RIGHT |
(no file at all) | |
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) 2014 Piotr Gawlowicz | 3 * Copyright (c) 2014 Piotr Gawlowicz |
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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 } | 192 } |
193 } | 193 } |
194 | 194 |
195 return m_dlRbgMap; | 195 return m_dlRbgMap; |
196 } | 196 } |
197 | 197 |
198 bool | 198 bool |
199 LteFfrSimple::DoIsDlRbgAvailableForUe (int i, uint16_t rnti) | 199 LteFfrSimple::DoIsDlRbgAvailableForUe (int i, uint16_t rnti) |
200 { | 200 { |
201 NS_LOG_FUNCTION (this); | 201 NS_LOG_FUNCTION (this); |
| 202 NS_UNUSED (i); |
| 203 NS_UNUSED (rnti); |
202 return true; | 204 return true; |
203 } | 205 } |
204 | 206 |
205 std::vector <bool> | 207 std::vector <bool> |
206 LteFfrSimple::DoGetAvailableUlRbg () | 208 LteFfrSimple::DoGetAvailableUlRbg () |
207 { | 209 { |
208 NS_LOG_FUNCTION (this); | 210 NS_LOG_FUNCTION (this); |
209 | 211 |
210 if (m_ulRbgMap.empty ()) | 212 if (m_ulRbgMap.empty ()) |
211 { | 213 { |
212 m_ulRbgMap.resize (m_ulBandwidth, true); | 214 m_ulRbgMap.resize (m_ulBandwidth, true); |
213 | 215 |
214 for (uint8_t i = m_ulOffset; i < (m_ulOffset + m_ulSubBand); i++) | 216 for (uint8_t i = m_ulOffset; i < (m_ulOffset + m_ulSubBand); i++) |
215 { | 217 { |
216 m_ulRbgMap[i] = false; | 218 m_ulRbgMap[i] = false; |
217 } | 219 } |
218 } | 220 } |
219 | 221 |
220 return m_ulRbgMap; | 222 return m_ulRbgMap; |
221 } | 223 } |
222 | 224 |
223 bool | 225 bool |
224 LteFfrSimple::DoIsUlRbgAvailableForUe (int i, uint16_t rnti) | 226 LteFfrSimple::DoIsUlRbgAvailableForUe (int i, uint16_t rnti) |
225 { | 227 { |
226 NS_LOG_FUNCTION (this); | 228 NS_LOG_FUNCTION (this); |
| 229 NS_UNUSED (i); |
| 230 NS_UNUSED (rnti); |
227 return true; | 231 return true; |
228 } | 232 } |
229 | 233 |
230 void | 234 void |
231 LteFfrSimple::DoReportDlCqiInfo (const struct FfMacSchedSapProvider::SchedDlCqiI
nfoReqParameters& params) | 235 LteFfrSimple::DoReportDlCqiInfo (const struct FfMacSchedSapProvider::SchedDlCqiI
nfoReqParameters& params) |
232 { | 236 { |
233 NS_LOG_FUNCTION (this); | 237 NS_LOG_FUNCTION (this); |
| 238 NS_UNUSED (params); |
234 } | 239 } |
235 | 240 |
236 void | 241 void |
237 LteFfrSimple::DoReportUlCqiInfo (const struct FfMacSchedSapProvider::SchedUlCqiI
nfoReqParameters& params) | 242 LteFfrSimple::DoReportUlCqiInfo (const struct FfMacSchedSapProvider::SchedUlCqiI
nfoReqParameters& params) |
238 { | 243 { |
239 NS_LOG_FUNCTION (this); | 244 NS_LOG_FUNCTION (this); |
| 245 NS_UNUSED (params); |
240 } | 246 } |
241 | 247 |
242 void | 248 void |
243 LteFfrSimple::DoReportUlCqiInfo (std::map <uint16_t, std::vector <double> > ulCq
iMap) | 249 LteFfrSimple::DoReportUlCqiInfo (std::map <uint16_t, std::vector <double> > ulCq
iMap) |
244 { | 250 { |
245 NS_LOG_FUNCTION (this); | 251 NS_LOG_FUNCTION (this); |
246 } | 252 } |
247 | 253 |
248 uint8_t | 254 uint8_t |
249 LteFfrSimple::DoGetTpc (uint16_t rnti) | 255 LteFfrSimple::DoGetTpc (uint16_t rnti) |
250 { | 256 { |
251 NS_LOG_FUNCTION (this); | 257 NS_LOG_FUNCTION (this); |
| 258 NS_UNUSED (rnti); |
252 | 259 |
253 if (m_accumulatedMode) | 260 if (m_accumulatedMode) |
254 { | 261 { |
255 if (m_tpcNum > 0) | 262 if (m_tpcNum > 0) |
256 { | 263 { |
257 m_tpcNum--; | 264 m_tpcNum--; |
258 return m_tpc; | 265 return static_cast<uint8_t> (m_tpc); |
259 } | 266 } |
260 else | 267 else |
261 { | 268 { |
262 return 1; | 269 return 1; |
263 } | 270 } |
264 } | 271 } |
265 else | 272 else |
266 { | 273 { |
267 return m_tpc; | 274 return static_cast<uint8_t> (m_tpc); |
268 } | 275 } |
269 | 276 |
270 return 1; // 1 is mapped to 0 for Accumulated mode, and to -1 in Absolute mode
TS36.213 Table 5.1.1.1-2 | 277 return 1; // 1 is mapped to 0 for Accumulated mode, and to -1 in Absolute mode
TS36.213 Table 5.1.1.1-2 |
271 } | 278 } |
272 | 279 |
273 uint8_t | 280 uint8_t |
274 LteFfrSimple::DoGetMinContinuousUlBandwidth () | 281 LteFfrSimple::DoGetMinContinuousUlBandwidth () |
275 { | 282 { |
276 NS_LOG_FUNCTION (this); | 283 NS_LOG_FUNCTION (this); |
277 return m_ulBandwidth; | 284 return m_ulBandwidth; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 } | 325 } |
319 } | 326 } |
320 | 327 |
321 void | 328 void |
322 LteFfrSimple::DoRecvLoadInformation (EpcX2Sap::LoadInformationParams params) | 329 LteFfrSimple::DoRecvLoadInformation (EpcX2Sap::LoadInformationParams params) |
323 { | 330 { |
324 NS_LOG_FUNCTION (this); | 331 NS_LOG_FUNCTION (this); |
325 } | 332 } |
326 | 333 |
327 } // end of namespace ns3 | 334 } // end of namespace ns3 |
LEFT | RIGHT |