swarm-support
[Top][All Lists]
Advanced

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

Re: Scheduling One Time Events


From: Darren Schreiber
Subject: Re: Scheduling One Time Events
Date: Tue, 23 Nov 1999 10:06:32 -0800

I have changed the code to put a call to the GUI update at the end of
buildObjects.

But, I am still having the same problem where the ObseverSwarm appears to
do its updating at the start of the cycle instead of at the end.  How do I
schedule the modelSwarm's schedule of activities before the ObserverSwarm's
activities?

        Darren

>>>>>> "DS" == Darren Schreiber <address@hidden> writes:
>
>DS> I want to draw
>DS> the raster right after the build objects phase is completed.  Then
>DS> I want to have the raster update at the end of every step in the
>DS> modelSwarm.
>
>Usually GUI update actions are done in a single ActionGroup, as you
>have, i.e. by default they execute in the order they are put in the
>ActionGroup.  In fact, that needn't be the default, and often there is
>an important ordering to the GUI update actions.  For example, you
>have an eraseRaster before the display.  (In other cases, when using
>ActionGroup, the intent is to communicate the fact that the
>actions are logically concurrent, so that Swarm could (conceivably)
>physically parallelize the actions.)
>
>In the former case, you're better off making a single update method that
>calls the GUI update methods in the required order and scheduling it
>with at:createActionTo:message:.  Then it is simply a matter of calling
>the update method at the end of buildObjects.
>
>
>                  ==================================
>   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.


_____________________________________________

                 Darren Schreiber
                  Attorney at Law
                 Graduate Student
             Political Science, UCLA
                address@hidden

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