Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Correction of some bugs.
authorSébastien Miquée <sebastien.miquee@univ-fcomte.fr>
Thu, 18 Feb 2010 01:04:42 +0000 (02:04 +0100)
committerSébastien Miquée <sebastien.miquee@univ-fcomte.fr>
Thu, 18 Feb 2010 01:04:42 +0000 (02:04 +0100)
- Problem in the return of the position of the dead node.

- Suppression of the replacing operation in the search of the
  replacing node.

src/and/Mapping/DefaultMapping.java
src/and/Mapping/Mapping.java

index 4123be8..9e10bf5 100644 (file)
@@ -82,8 +82,6 @@ public class DefaultMapping extends Algo
                        if( _ag.size() > 0 )
                        {
                                ret = _ag.get( 0 ) ;
-                               
-                               mp.getMapping().get( pos ).setGNode( ret ) ;
                        } else {
                                System.err.println( "Not enought available nodes in gnodes to replace one !" ) ;
                                return null ;
index 69593db..1136d55 100644 (file)
@@ -240,7 +240,7 @@ public class Mapping implements Serializable
                {
                        if( mapping.get( i ).getGNode().getId() == _g.getId() )
                        {
-                               i = ret ;
+                               ret = i ;
                                break ;
                        }
                }