vutukuribharat / cloudsim

Automatically exported from code.google.com/p/cloudsim
0 stars 0 forks source link

nextIdx is not updated in buildNetworkTopology() #70

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Call buildNetworkTopology("some.brite")
2. Use addLink() to add additional links to a node that is not in brite file.

What is the expected output? What do you see instead?
nextIdx is still 0, so two items in the map are mapped to 0 after adding the 
link. That result in an incorrect topology. Instead, nextIdx should have been 
incremented to the number nodes in the brite file.

What version of the product are you using? On what operating system?
3.0.3 on Win 7

Original issue reported on code.google.com by atakana...@gmail.com on 28 Dec 2014 at 8:51