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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 std::vector <bool> rbgMap; | 116 std::vector <bool> rbgMap; |
117 int rbgSize = GetRbgSize (m_dlBandwidth); | 117 int rbgSize = GetRbgSize (m_dlBandwidth); |
118 rbgMap.resize (m_dlBandwidth/rbgSize, false); | 118 rbgMap.resize (m_dlBandwidth/rbgSize, false); |
119 return rbgMap; | 119 return rbgMap; |
120 } | 120 } |
121 | 121 |
122 bool | 122 bool |
123 LteFrNoOpAlgorithm::DoIsDlRbgAvailableForUe (int i, uint16_t rnti) | 123 LteFrNoOpAlgorithm::DoIsDlRbgAvailableForUe (int i, uint16_t rnti) |
124 { | 124 { |
125 NS_LOG_FUNCTION (this); | 125 NS_LOG_FUNCTION (this); |
| 126 NS_UNUSED (i); |
| 127 NS_UNUSED (rnti); |
126 return true; | 128 return true; |
127 } | 129 } |
128 | 130 |
129 std::vector <bool> | 131 std::vector <bool> |
130 LteFrNoOpAlgorithm::DoGetAvailableUlRbg () | 132 LteFrNoOpAlgorithm::DoGetAvailableUlRbg () |
131 { | 133 { |
132 NS_LOG_FUNCTION (this); | 134 NS_LOG_FUNCTION (this); |
133 std::vector <bool> rbgMap; | 135 std::vector <bool> rbgMap; |
134 rbgMap.resize (m_ulBandwidth, false); | 136 rbgMap.resize (m_ulBandwidth, false); |
135 return rbgMap; | 137 return rbgMap; |
136 } | 138 } |
137 | 139 |
138 bool | 140 bool |
139 LteFrNoOpAlgorithm::DoIsUlRbgAvailableForUe (int i, uint16_t rnti) | 141 LteFrNoOpAlgorithm::DoIsUlRbgAvailableForUe (int i, uint16_t rnti) |
140 { | 142 { |
141 NS_LOG_FUNCTION (this); | 143 NS_LOG_FUNCTION (this); |
| 144 NS_UNUSED (i); |
| 145 NS_UNUSED (rnti); |
142 return true; | 146 return true; |
143 } | 147 } |
144 | 148 |
145 void | 149 void |
146 LteFrNoOpAlgorithm::DoReportDlCqiInfo (const struct FfMacSchedSapProvider::Sched
DlCqiInfoReqParameters& params) | 150 LteFrNoOpAlgorithm::DoReportDlCqiInfo (const struct FfMacSchedSapProvider::Sched
DlCqiInfoReqParameters& params) |
147 { | 151 { |
148 NS_LOG_FUNCTION (this); | 152 NS_LOG_FUNCTION (this); |
149 NS_LOG_WARN ("Method should not be called, because it is empty"); | 153 NS_LOG_WARN ("Method should not be called, because it is empty"); |
| 154 NS_UNUSED (params); |
150 } | 155 } |
151 | 156 |
152 void | 157 void |
153 LteFrNoOpAlgorithm::DoReportUlCqiInfo (const struct FfMacSchedSapProvider::Sched
UlCqiInfoReqParameters& params) | 158 LteFrNoOpAlgorithm::DoReportUlCqiInfo (const struct FfMacSchedSapProvider::Sched
UlCqiInfoReqParameters& params) |
154 { | 159 { |
155 NS_LOG_FUNCTION (this); | 160 NS_LOG_FUNCTION (this); |
156 NS_LOG_WARN ("Method should not be called, because it is empty"); | 161 NS_LOG_WARN ("Method should not be called, because it is empty"); |
| 162 NS_UNUSED (params); |
157 } | 163 } |
158 | 164 |
159 void | 165 void |
160 LteFrNoOpAlgorithm::DoReportUlCqiInfo (std::map <uint16_t, std::vector <double>
> ulCqiMap) | 166 LteFrNoOpAlgorithm::DoReportUlCqiInfo (std::map <uint16_t, std::vector <double>
> ulCqiMap) |
161 { | 167 { |
162 NS_LOG_FUNCTION (this); | 168 NS_LOG_FUNCTION (this); |
163 NS_LOG_WARN ("Method should not be called, because it is empty"); | 169 NS_LOG_WARN ("Method should not be called, because it is empty"); |
164 } | 170 } |
165 | 171 |
166 uint8_t | 172 uint8_t |
167 LteFrNoOpAlgorithm::DoGetTpc (uint16_t rnti) | 173 LteFrNoOpAlgorithm::DoGetTpc (uint16_t rnti) |
168 { | 174 { |
169 NS_LOG_FUNCTION (this); | 175 NS_LOG_FUNCTION (this); |
| 176 NS_UNUSED (rnti); |
170 return 1; // 1 is mapped to 0 for Accumulated mode, and to -1 in Absolute mode
TS36.213 Table 5.1.1.1-2 | 177 return 1; // 1 is mapped to 0 for Accumulated mode, and to -1 in Absolute mode
TS36.213 Table 5.1.1.1-2 |
171 } | 178 } |
172 | 179 |
173 uint8_t | 180 uint8_t |
174 LteFrNoOpAlgorithm::DoGetMinContinuousUlBandwidth () | 181 LteFrNoOpAlgorithm::DoGetMinContinuousUlBandwidth () |
175 { | 182 { |
176 NS_LOG_FUNCTION (this); | 183 NS_LOG_FUNCTION (this); |
177 return m_ulBandwidth; | 184 return m_ulBandwidth; |
178 } | 185 } |
179 | 186 |
180 void | 187 void |
181 LteFrNoOpAlgorithm::DoReportUeMeas (uint16_t rnti, | 188 LteFrNoOpAlgorithm::DoReportUeMeas (uint16_t rnti, |
182 LteRrcSap::MeasResults measResults) | 189 LteRrcSap::MeasResults measResults) |
183 { | 190 { |
184 NS_LOG_FUNCTION (this << rnti << (uint16_t) measResults.measId); | 191 NS_LOG_FUNCTION (this << rnti << (uint16_t) measResults.measId); |
185 NS_LOG_WARN ("Method should not be called, because it is empty"); | 192 NS_LOG_WARN ("Method should not be called, because it is empty"); |
186 } | 193 } |
187 | 194 |
188 void | 195 void |
189 LteFrNoOpAlgorithm::DoRecvLoadInformation (EpcX2Sap::LoadInformationParams param
s) | 196 LteFrNoOpAlgorithm::DoRecvLoadInformation (EpcX2Sap::LoadInformationParams param
s) |
190 { | 197 { |
191 NS_LOG_FUNCTION (this); | 198 NS_LOG_FUNCTION (this); |
192 NS_LOG_WARN ("Method should not be called, because it is empty"); | 199 NS_LOG_WARN ("Method should not be called, because it is empty"); |
193 } | 200 } |
194 | 201 |
195 } // end of namespace ns3 | 202 } // end of namespace ns3 |
OLD | NEW |