swarm-support
[Top][All Lists]
Advanced

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

Re: createFActionForEachHomogeneous$call question


From: Marcus G. Daniels
Subject: Re: createFActionForEachHomogeneous$call question
Date: 30 Jan 2002 11:12:48 -0700
User-agent: Gnus/5.070084 (Pterodactyl Gnus v0.84) Emacs/20.7

>>>>> "WS" == William T Stockhausen <address@hidden> writes:

WS> It appears, however, that the FActionForEach is "assigned" to each
WS> agent only once (at the start of the simulation), so that even
WS> though agents are moved from list1 to list2, they continue to act
WS> (in my case) as if they were on list1. Should this be the case, or
WS> have I missed something?

There's one FCall object that is allocated for the list, and the list itself
is frozen at create time.  This avoids the cost of iterating through
lists and the costs of dispatching the method to the target object.
So, createFActionForEachHomogeneous$call is too specialized for what
you want to do.  The Heterogeneous version should work, though.

                  ==================================
   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]