swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how works forEach?


From: Marcus G. Daniels
Subject: Re: how works forEach?
Date: 26 Feb 2001 19:37:18 -0800
User-agent: Gnus/5.070084 (Pterodactyl Gnus v0.84) Emacs/20.4

>>>>> "GF" == Ferraris  <address@hidden> writes:

GF> when we create the actions in modelSwarm (using:
GF> [modelActions createActionForEach: agentList message: M(step)];
GF> how exactly does Swarm work?  It sends the messagge "step" to each
GF> member in the list without waiting for answer or it sends "step"
GF> to the first member waiting the agent executes the return self
GF> before sending the "step" selector to the second and so on?

Clearly we would prefer to have Swarm implement the former, but all
it currently implements is the latter.  However, you can determine
if concurrency would change the dynamics of your model by calling
"[forEachAction setDefaultOrder: Randomized]" where "forEachAction"
is the result of createActionForEach:message:.

                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]