@Override
public void map()
{
- /* If the mapping is possible ... */
+ /** If the mapping is possible ... **/
if( gr.getNbGTask() <= gl.getNbGNode() )
{
atraiter = gr.getGraph() ;
} else {
System.err.println( "\n\n!!! Unable to map application !\n\n" ) ;
}
+
+ /** Update in cluster the status of nodes **/
+ updateGrid() ;
}
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 ;
}