[Mmil-commits] r22 - trunk/src/fr/loria/led/mmil

alexandredenis at users.gforge.inria.fr alexandredenis at users.gforge.inria.fr
Mar 3 Oct 13:03:45 CEST 2006


Author: alexandredenis
Date: 2006-10-03 11:03:45 +0000 (Tue, 03 Oct 2006)
New Revision: 22

Modified:
   trunk/src/fr/loria/led/mmil/MMILComponent.java
Log:


Modified: trunk/src/fr/loria/led/mmil/MMILComponent.java
===================================================================
--- trunk/src/fr/loria/led/mmil/MMILComponent.java	2006-10-03 10:55:26 UTC (rev 21)
+++ trunk/src/fr/loria/led/mmil/MMILComponent.java	2006-10-03 11:03:45 UTC (rev 22)
@@ -525,12 +525,19 @@
             System.out.println("Entity 2 is\n"+ent2);
             if (unif!=null)
             {
+                System.out.println("Unify !");
                 moveRelations(ent1, unif);
                 moveRelations(ent2, unif);
+                entities.set(i+1, unif);
                 newEntities.add(unif);
-                System.out.println("Unify !");
             }
-            else System.out.println("Do not unify !");
+            else 
+            {
+                System.out.println("Do not unify !");
+                newEntities.add(ent1);
+                if (i==entities.size()-1)
+                    newEntities.add(ent2);
+            }
         }
         setEntities(newEntities);
     }       






Plus d'informations sur la liste de diffusion Mmil-commits