Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Correction of bugs and new functionalities.
[mapping.git] / src / and / Mapping / Mapping.java
index 0499f1a..c6ee73a 100644 (file)
@@ -92,9 +92,10 @@ public class Mapping implements Serializable
        {
                if( _a != null && _a.getGNode() != null && _a.getGTask() != null )
                {
-                       int ind = _a.getGTask().getNum() ;
-                       
-                       mapping.add( ind - 1, _a ) ;
+//                     int ind = _a.getGTask().getNum() ;
+//                     
+//                     mapping.add( ind - 1, _a ) ;
+                       mapping.add( _a ) ;
                }
        }
        
@@ -180,7 +181,7 @@ public class Mapping implements Serializable
        public void print()
        {
                System.out.println();
-               System.out.println( "\t=> Mapping done :\n" ) ;
+               System.out.println( "\t=> Mapping done:\n" ) ;
                
                if( type == 0 )
                {
@@ -239,7 +240,7 @@ public class Mapping implements Serializable
                {
                        if( mapping.get( i ).getGNode().getId() == _g.getId() )
                        {
-                               i = ret ;
+                               ret = i ;
                                break ;
                        }
                }