swarm-support
[Top][All Lists]
Advanced

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

RE: createFActionForEachHomogeneous$call question


From: William T. Stockhausen
Subject: RE: createFActionForEachHomogeneous$call question
Date: Wed, 30 Jan 2002 16:19:20 -0500

Marcus,

The createFActionForEachHeterogeneous$call did the trick!  Thanks for the
help on this (and on my other message, as well).

Buck
***********************************************************************
*William T. Stockhausen                     e-mail: address@hidden     *
*Senior Marine Scientist                    voice : 804-684-7643      *
*Virginia Institute of Marine Science       fax   : 804-684-7250      *
*College of William and Mary                http://www.vims.edu/~buck *
*Greate Road                                                          *
*Gloucester Point, VA 23062-1346                                      *
***********************************************************************

-----Original Message-----
From: address@hidden
[mailto:address@hidden Behalf Of Marcus G. Daniels
Sent: Wednesday, January 30, 2002 1:13 PM
To: address@hidden
Subject: Re: createFActionForEachHomogeneous$call question


>>>>> "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.


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