Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add of grid modifications.
[mapping.git] / src / and / Mapping / Algo.java
index 79a210f..e85d04f 100644 (file)
@@ -63,7 +63,7 @@ public abstract class Algo implements Serializable
         * in order to bring fault tolerance. 
         * @return Another node which will not compute
         */
-       public abstract GNode getOtherGNode() ;
+       public abstract GNode getOtherGNode( ArrayList<GNode> _ag ) ;
        
        
        /**
@@ -74,6 +74,26 @@ public abstract class Algo implements Serializable
        {
                return mp ;
        }       
+       
+       
+       /**
+        * Return the grid used in the algorithm.
+        * @return The Grid
+        */
+       public Grid getGrid()
+       {
+               return gl ;
+       }
+       
+       
+       /**
+        * Return the graph used in the algorithm.
+        * @return The Graph
+        */
+       public Graph getGraph()
+       {
+               return gr ;
+       }
 }
 
 /** La programmation est un art, respectons ceux qui la pratiquent !! **/