Test
This commit is contained in:
parent
04c6618a68
commit
996c9fc346
2 changed files with 8 additions and 8 deletions
|
@ -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();
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue