From: Nick C. <nic...@gm...> - 2010-01-26 13:52:38
|
If you are doing a straight Java model then I'd give each warehouse a reference to the suppliers when the agents are created. If you put those into a List then you can easily loop through that list each iteration. Nick On Jan 26, 2010, at 7:59 AM, Fernando Sáenz Antoñanzas wrote: > Hi, > > i have 20 agents(all warehouses) and 10 agent( all suppliers) lets say > that each time, every warehouse has to get the data associated to each > supplier, should i create a suppliers object array, or how could i get > the attributtes and values of each agent with a loop.Maybe using > getContext(this) could be possible...getting lost... > > Thanks a lot! > > ------------------------------------------------------------------------------ > The Planet: dedicated and managed hosting, cloud storage, colocation > Stay online with enterprise data centers and the best network in the > business > Choose flexible plans and management services without long-term > contracts > Personal 24x7 support from experience hosting pros just a phone call > away. > http://p.sf.net/sfu/theplanet-com > _______________________________________________ > Repast-interest mailing list > Rep...@li... > https://lists.sourceforge.net/lists/listinfo/repast-interest |