Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Adding some new functions.
[mapping.git] / src / and / Mapping / Algo.java
index a06171e..608c667 100644 (file)
@@ -99,14 +99,16 @@ public abstract class Algo implements Serializable
        /**
         * Update the grid status after having done the mapping.
         */
-       protected void updateGrid()
+       public void updateGrid()
        {
-               if( mp.getMappedGNodes().size() >= 0 )
+               if( mp.getMappedGNodes().size() > 0 )
                {
                        ArrayList<GNode> temp = mp.getMappedGNodes() ;
                        for( int i = 0 ; i < temp.size() ; i++ )
                        {
                                gl.getClusterOfNode( temp.get( i ) ).setGNodeStatus( temp.get( i ), true ) ;
+                               
+                               gl.setMappedStatus( temp.get( i ), true ) ;
                        }
                }
        }