swarm-support
[Top][All Lists]
Advanced

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

Re: Finding events at a particular time in a Schedule


From: Marcus G. Daniels
Subject: Re: Finding events at a particular time in a Schedule
Date: 21 Sep 2000 18:52:18 -0700
User-agent: Gnus/5.070084 (Pterodactyl Gnus v0.84) Emacs/20.4

>>>>> "TTF" == Tee Toth-Fejel <address@hidden> writes:

TTF>    swarm.collections.StringImpl strc = new StringImpl(getZone());
TTF>    System.out.println("DUMP SCHEDULE at " + Globals.env.getCurrentTime());
TTF>    schedule.describeForEach(strc);
TTF>    System.out.println(strc.getC());
TTF>    strc.drop();

Huh?  `strc' does nothing here.

TTF> But what if I don't care about the past, i.e. events scheduled before
TTF> Globals.env.getCurrentTime())?

A Schedule is a kind of Map.  You can traverse it with a MapIndex, i.e.
by using begin:.

TTF> Finally, if there are more than one events taking place at a time
TTF> step, then how do I make sure that one of them (e.g.
TTF> getControlPanel().setStateStopped();) happens last, especially if it
TTF> was the first one scheduled?  

Make sure activateIn: is called last for the ObserverSwarm.  If you would like
more of an explanation advocate a SDG membership for your company...





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