Committed by
Gerrit Code Review
Delete code that is commented out
Change-Id: Iea41b7e1634aa3011fb3d5923422baa3c1ed9e9e
Showing
1 changed file
with
0 additions
and
37 deletions
... | @@ -184,41 +184,4 @@ public class OpticalPathIntentInstaller implements IntentInstaller<OpticalPathIn | ... | @@ -184,41 +184,4 @@ public class OpticalPathIntentInstaller implements IntentInstaller<OpticalPathIn |
184 | 184 | ||
185 | return Lists.newArrayList(new FlowRuleBatchOperation(rules)); | 185 | return Lists.newArrayList(new FlowRuleBatchOperation(rules)); |
186 | } | 186 | } |
187 | - | ||
188 | - /*private Lambda assignWavelength(List<Link> links) { | ||
189 | - // TODO More wavelength assignment algorithm | ||
190 | - int wavenum = 0; | ||
191 | - Iterator<Link> itrlink = links.iterator(); | ||
192 | - for (int i = 1; i <= WAVELENGTH; i++) { | ||
193 | - wavenum = i; | ||
194 | - boolean found = true; | ||
195 | - while (itrlink.hasNext()) { | ||
196 | - Link link = itrlink.next(); | ||
197 | - if (isWavelengthUsed(link, i)) { | ||
198 | - found = false; | ||
199 | - break; | ||
200 | - } | ||
201 | - } | ||
202 | - // First-Fit wavelength assignment algorithm | ||
203 | - if (found) { | ||
204 | - break; | ||
205 | - } | ||
206 | - } | ||
207 | - | ||
208 | - if (wavenum == 0) { | ||
209 | - return null; | ||
210 | - } | ||
211 | - | ||
212 | - Lambda wave = Lambda.valueOf(wavenum); | ||
213 | - return wave; | ||
214 | - } | ||
215 | - | ||
216 | - private boolean isWavelengthUsed(Link link, int i) { | ||
217 | - Iterable<LinkResourceAllocations> wave = resourceService.getAllocations(link); | ||
218 | - for (LinkResourceAllocations ir : wave) { | ||
219 | - //if ir.resources().contains(i) { | ||
220 | - //} | ||
221 | - } | ||
222 | - return false; | ||
223 | - }*/ | ||
224 | } | 187 | } | ... | ... |
-
Please register or login to post a comment