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) 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 10 matching lines...) Expand all Loading... |
21 | 21 |
22 #include "lte-ffr-algorithm.h" | 22 #include "lte-ffr-algorithm.h" |
23 #include "ns3/uinteger.h" | 23 #include "ns3/uinteger.h" |
24 #include "ns3/boolean.h" | 24 #include "ns3/boolean.h" |
25 #include <ns3/log.h> | 25 #include <ns3/log.h> |
26 | 26 |
27 namespace ns3 { | 27 namespace ns3 { |
28 | 28 |
29 NS_LOG_COMPONENT_DEFINE ("LteFfrAlgorithm"); | 29 NS_LOG_COMPONENT_DEFINE ("LteFfrAlgorithm"); |
30 | 30 |
| 31 /// Type 0 RGB allocation |
31 static const int Type0AllocationRbg[4] = { | 32 static const int Type0AllocationRbg[4] = { |
32 10, // RGB size 1 | 33 10, // RGB size 1 |
33 26, // RGB size 2 | 34 26, // RGB size 2 |
34 63, // RGB size 3 | 35 63, // RGB size 3 |
35 110 // RGB size 4 | 36 110 // RGB size 4 |
36 }; // see table 7.1.6.1-1 of 3GPP TS 36.213 | 37 }; // see table 7.1.6.1-1 of 3GPP TS 36.213 |
37 | 38 |
38 NS_OBJECT_ENSURE_REGISTERED (LteFfrAlgorithm); | 39 NS_OBJECT_ENSURE_REGISTERED (LteFfrAlgorithm); |
39 | 40 |
40 | 41 |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 | 173 |
173 void | 174 void |
174 LteFfrAlgorithm::DoSetBandwidth (uint8_t ulBandwidth, uint8_t dlBandwidth) | 175 LteFfrAlgorithm::DoSetBandwidth (uint8_t ulBandwidth, uint8_t dlBandwidth) |
175 { | 176 { |
176 NS_LOG_FUNCTION (this); | 177 NS_LOG_FUNCTION (this); |
177 SetDlBandwidth (dlBandwidth); | 178 SetDlBandwidth (dlBandwidth); |
178 SetUlBandwidth (ulBandwidth); | 179 SetUlBandwidth (ulBandwidth); |
179 } | 180 } |
180 | 181 |
181 } // end of namespace ns3 | 182 } // end of namespace ns3 |
OLD | NEW |