[Mmil-commits] r41 - trunk/src/fr/loria/talaris/mmil

alexandredenis at users.gforge.inria.fr alexandredenis at users.gforge.inria.fr
Sam 14 Nov 12:53:38 CET 2009


Author: alexandredenis
Date: 2009-11-14 12:53:37 +0100 (Sat, 14 Nov 2009)
New Revision: 41

Modified:
   trunk/src/fr/loria/talaris/mmil/DefaultMMILComponent.java
Log:


Modified: trunk/src/fr/loria/talaris/mmil/DefaultMMILComponent.java
===================================================================
--- trunk/src/fr/loria/talaris/mmil/DefaultMMILComponent.java	2009-11-14 11:53:26 UTC (rev 40)
+++ trunk/src/fr/loria/talaris/mmil/DefaultMMILComponent.java	2009-11-14 11:53:37 UTC (rev 41)
@@ -527,7 +527,7 @@
 	{
 		Collection<MMILEntity> entities = new HashSet<MMILEntity>();
 		entities.add(entity);
-		for (MMILRelation rel : getRelationalModifiers(entity, predecessors))
+		for(MMILRelation rel : getRelationalModifiers(entity, predecessors))
 			entities.addAll(getRelationalGroup(rel.getRelated(entity), predecessors));
 		return entities;
 	}
@@ -537,7 +537,7 @@
 	{
 		int dist = getShortestPathTo(entity, predecessors).size();
 		List<MMILRelation> ret = new ArrayList<MMILRelation>();
-		for (MMILRelation rel : entity.getComponent().getRelationsByEntity(entity))
+		for(MMILRelation rel : entity.getComponent().getRelationsByEntity(entity))
 			if (getShortestPathTo(rel.getRelated(entity), predecessors).size() > dist)
 				ret.add(rel);
 		return ret;
@@ -546,7 +546,7 @@
 	protected static List<MMILEntity> getShortestPathTo(MMILEntity target, HashMap<MMILEntity, MMILEntity> predecessors)
 	{
 		List<MMILEntity> path = new ArrayList<MMILEntity>();
-		for (MMILEntity entity = target; entity != null; entity = predecessors.get(entity))
+		for(MMILEntity entity = target; entity != null; entity = predecessors.get(entity))
 			path.add(entity);
 		return path;
 	}




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