This commit is contained in:
Loic Guegan 2016-03-29 11:42:05 +02:00
parent 04c6618a68
commit 996c9fc346
2 changed files with 8 additions and 8 deletions

View file

@ -37,7 +37,8 @@ public class Grid {
this.buildEdgeWithRandomWeigth();
//Build fixed link
this.buildPath();
this.protocol=protocol;
@ -48,7 +49,7 @@ public class Grid {
case DSDV:
case CUSTOM:
HashMap<Integer,Integer> currentBestLink=new HashMap<>();
for(int i=0;i<100000;i++){
for(int i=0;i<1000;i++){
int current=this.getBestLinkIndex();
if(currentBestLink.containsKey(current)){
currentBestLink.put(current, currentBestLink.get(current)+1);
@ -87,8 +88,7 @@ public class Grid {
public void buildEdgeWithRandomWeigth(){
//Build fixed link
this.buildPath();