Context classes in Repast implements java.util.Collection interface, so you just need to invoke:
Iterator<MyAgent> agents = context.iterator();
It will return the agents of subcontexts as well!!!
Regards,
Fernando.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________
Repast-interest mailing list
Repast-interest@...
https://lists.sourceforge.net/lists/listinfo/repast-interest