LEFT | RIGHT |
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); | 126 NS_UNUSED (i); |
127 NS_UNUSED(rnti); | 127 NS_UNUSED (rnti); |
128 return true; | 128 return true; |
129 } | 129 } |
130 | 130 |
131 std::vector <bool> | 131 std::vector <bool> |
132 LteFrNoOpAlgorithm::DoGetAvailableUlRbg () | 132 LteFrNoOpAlgorithm::DoGetAvailableUlRbg () |
133 { | 133 { |
134 NS_LOG_FUNCTION (this); | 134 NS_LOG_FUNCTION (this); |
135 std::vector <bool> rbgMap; | 135 std::vector <bool> rbgMap; |
136 rbgMap.resize (m_ulBandwidth, false); | 136 rbgMap.resize (m_ulBandwidth, false); |
137 return rbgMap; | 137 return rbgMap; |
138 } | 138 } |
139 | 139 |
140 bool | 140 bool |
141 LteFrNoOpAlgorithm::DoIsUlRbgAvailableForUe (int i, uint16_t rnti) | 141 LteFrNoOpAlgorithm::DoIsUlRbgAvailableForUe (int i, uint16_t rnti) |
142 { | 142 { |
143 NS_LOG_FUNCTION (this); | 143 NS_LOG_FUNCTION (this); |
144 NS_UNUSED(i); | 144 NS_UNUSED (i); |
145 NS_UNUSED(rnti); | 145 NS_UNUSED (rnti); |
146 return true; | 146 return true; |
147 } | 147 } |
148 | 148 |
149 void | 149 void |
150 LteFrNoOpAlgorithm::DoReportDlCqiInfo (const struct FfMacSchedSapProvider::Sched
DlCqiInfoReqParameters& params) | 150 LteFrNoOpAlgorithm::DoReportDlCqiInfo (const struct FfMacSchedSapProvider::Sched
DlCqiInfoReqParameters& params) |
151 { | 151 { |
152 NS_LOG_FUNCTION (this); | 152 NS_LOG_FUNCTION (this); |
153 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); | 154 NS_UNUSED (params); |
155 } | 155 } |
156 | 156 |
157 void | 157 void |
158 LteFrNoOpAlgorithm::DoReportUlCqiInfo (const struct FfMacSchedSapProvider::Sched
UlCqiInfoReqParameters& params) | 158 LteFrNoOpAlgorithm::DoReportUlCqiInfo (const struct FfMacSchedSapProvider::Sched
UlCqiInfoReqParameters& params) |
159 { | 159 { |
160 NS_LOG_FUNCTION (this); | 160 NS_LOG_FUNCTION (this); |
161 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); | 162 NS_UNUSED (params); |
163 } | 163 } |
164 | 164 |
165 void | 165 void |
166 LteFrNoOpAlgorithm::DoReportUlCqiInfo (std::map <uint16_t, std::vector <double>
> ulCqiMap) | 166 LteFrNoOpAlgorithm::DoReportUlCqiInfo (std::map <uint16_t, std::vector <double>
> ulCqiMap) |
167 { | 167 { |
168 NS_LOG_FUNCTION (this); | 168 NS_LOG_FUNCTION (this); |
169 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"); |
170 } | 170 } |
171 | 171 |
172 uint8_t | 172 uint8_t |
173 LteFrNoOpAlgorithm::DoGetTpc (uint16_t rnti) | 173 LteFrNoOpAlgorithm::DoGetTpc (uint16_t rnti) |
174 { | 174 { |
175 NS_LOG_FUNCTION (this); | 175 NS_LOG_FUNCTION (this); |
176 NS_UNUSED(rnti); | 176 NS_UNUSED (rnti); |
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 | 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 |
178 } | 178 } |
179 | 179 |
180 uint8_t | 180 uint8_t |
181 LteFrNoOpAlgorithm::DoGetMinContinuousUlBandwidth () | 181 LteFrNoOpAlgorithm::DoGetMinContinuousUlBandwidth () |
182 { | 182 { |
183 NS_LOG_FUNCTION (this); | 183 NS_LOG_FUNCTION (this); |
184 return m_ulBandwidth; | 184 return m_ulBandwidth; |
185 } | 185 } |
186 | 186 |
187 void | 187 void |
188 LteFrNoOpAlgorithm::DoReportUeMeas (uint16_t rnti, | 188 LteFrNoOpAlgorithm::DoReportUeMeas (uint16_t rnti, |
189 LteRrcSap::MeasResults measResults) | 189 LteRrcSap::MeasResults measResults) |
190 { | 190 { |
191 NS_LOG_FUNCTION (this << rnti << (uint16_t) measResults.measId); | 191 NS_LOG_FUNCTION (this << rnti << (uint16_t) measResults.measId); |
192 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"); |
193 } | 193 } |
194 | 194 |
195 void | 195 void |
196 LteFrNoOpAlgorithm::DoRecvLoadInformation (EpcX2Sap::LoadInformationParams param
s) | 196 LteFrNoOpAlgorithm::DoRecvLoadInformation (EpcX2Sap::LoadInformationParams param
s) |
197 { | 197 { |
198 NS_LOG_FUNCTION (this); | 198 NS_LOG_FUNCTION (this); |
199 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"); |
200 } | 200 } |
201 | 201 |
202 } // end of namespace ns3 | 202 } // end of namespace ns3 |
LEFT | RIGHT |