Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Adding some new functions.
[mapping.git] / src / and / Mapping / DefaultMapping.java
index 9e10bf5..e03cfce 100644 (file)
@@ -42,7 +42,7 @@ public class DefaultMapping extends Algo
        @Override
        public void map() 
        {
-               /* If the mapping is possible ... */
+               /** If the mapping is possible ... **/
                if( gr.getNbGTask() <= gl.getNbGNode() )
                {
                        atraiter = gr.getGraph() ;
@@ -60,6 +60,9 @@ public class DefaultMapping extends Algo
                } else {
                        System.err.println( "\n\n!!! Unable to map application !\n\n" ) ;
                }
+               
+               /** Update in cluster the status of nodes **/
+               updateGrid() ;
        }
 
 
@@ -82,13 +85,17 @@ public class DefaultMapping extends Algo
                        if( _ag.size() > 0 )
                        {
                                ret = _ag.get( 0 ) ;
+                               
+                               
                        } else {
                                System.err.println( "Not enought available nodes in gnodes to replace one !" ) ;
                                return null ;
-                       }
-                       
+                       }               
                }
                
+               /** Update in cluster the status of nodes **/
+               updateGrid() ;
+               
                return ret ;
        }