Test
This commit is contained in:
commit
f9ae5db9f6
2 changed files with 53 additions and 41 deletions
|
@ -19,13 +19,18 @@ import structure.Router;
|
|||
public class Main {
|
||||
|
||||
public static void main(String[] args) {
|
||||
<<<<<<< HEAD
|
||||
Grid g=new Grid(Grid.Protocol.DSDV);
|
||||
=======
|
||||
Grid g=new Grid(Grid.Protocol.AODV);
|
||||
>>>>>>> bd27005eadf8c9526bf0167ea19a2d949bcca1f9
|
||||
|
||||
// Build Graph for graphstream
|
||||
MyGraph gr=new MyGraph("Routage Oportuniste", g);
|
||||
|
||||
|
||||
|
||||
gr.display();
|
||||
|
||||
|
||||
// Update Graph
|
||||
while(true){
|
||||
try {
|
||||
Thread.sleep(1000);
|
||||
|
@ -33,7 +38,7 @@ public class Main {
|
|||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
}
|
||||
g.buildRandomLink();
|
||||
g.buildEdgeWithRandomWeigth();
|
||||
System.out.println("Update !");
|
||||
gr.update();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue