diff options
| author | Loic Guegan <16000511@e105m10.istic.univ-rennes1.fr> | 2016-03-29 10:42:20 +0200 |
|---|---|---|
| committer | Loic Guegan <16000511@e105m10.istic.univ-rennes1.fr> | 2016-03-29 10:42:20 +0200 |
| commit | 3f97f9d8ac20bef90f05397dcf4971bc94d8edfb (patch) | |
| tree | 9b4a36b1588aee6f5c18f7e86059cc6d1627222c | |
| parent | 7f3a91e6dcbc8277613db6e21b2fd11b344f7a19 (diff) | |
Test
| -rw-r--r-- | main/Main.java | 2 | ||||
| -rw-r--r-- | structure/MyGraph.java (renamed from structure/Graph.java) | 0 | ||||
| -rw-r--r-- | structure/Router.java | 1 |
3 files changed, 1 insertions, 2 deletions
diff --git a/main/Main.java b/main/Main.java index c1f2693..f8941e6 100644 --- a/main/Main.java +++ b/main/Main.java @@ -19,7 +19,7 @@ import structure.Router; public class Main { public static void main(String[] args) { - Grid g=new Grid(Grid.Protocol.CUSTOM); + Grid g=new Grid(Grid.Protocol.DSDV); MyGraph gr=new MyGraph("Routage Oportuniste", g); diff --git a/structure/Graph.java b/structure/MyGraph.java index 1c2dc0f..1c2dc0f 100644 --- a/structure/Graph.java +++ b/structure/MyGraph.java diff --git a/structure/Router.java b/structure/Router.java index fce5977..3a8d8f9 100644 --- a/structure/Router.java +++ b/structure/Router.java @@ -22,7 +22,6 @@ public class Router { public void buildLink(Router router, int weight){ this.links.remove(router); router.removeLink(this); - this.links.put(router, weight); router.addLink(this, weight); |
