swarm-support
[Top][All Lists]
Advanced

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

Re: Scheduling in java


From: Marcus G. Daniels
Subject: Re: Scheduling in java
Date: 27 Apr 2001 10:33:46 -0600
User-agent: Gnus/5.070084 (Pterodactyl Gnus v0.84) Emacs/20.7

>>>>> "PJ" == Paul Johnson <address@hidden> writes:

MD> createFActionForEachHomogeneous with a Java FCall argument will be
MD> the fastest, provided you only have one type of agent in the set.

PJ> If the agents all have that same method (all subclasses of the
PJ> same thing) is it good enough for this to work? Or must they all
PJ> be from exactly the same class? 

createFActionForEachHomogeneous will call exactly one chunk of code.
(In Objective C speak, that means the IMP.)

If you have a Square that has a draw method and subclasses of
GreenSquare or BlueSquare with their own draw methods, then, if you
build the FCall for the Square, and one of the ForEach set is an
instance of GreenSquare, you won't get the square drawn in green.  The
fact that the ForEach dispatch doesn't have to check makes it faster.

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