swarm-support
[Top][All Lists]
Advanced

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

setRepeatInterval [os:all swarm:all lib:activity]


From: Steve Emsley
Subject: setRepeatInterval [os:all swarm:all lib:activity]
Date: Fri, 24 Jul 1998 01:41:07 +0100

I need to signal the schedule to alter it's repeat interval depending
on my simulations timestep. O.K. I can do that. Trouble is that if I
then use, say, [outputSchedule setRepeatInterval: newInterval] the
schedule goes out of synch with the simulated time. For instance, say
I was wanting to output at noon each day (which had a repeatInterval
of 96). If I update the repeatInterval to 192 because my timestep has
halved, and I do it at mid-morning, my next output is in
mid-afternoon.

I need some way of knowing what the repeatInterval counter state is
and resetting it to, in this instance, twice that value. The manual
entry for repeatInterval doesn't mention such a method. Am I missing
something?

Thanks 
Steve.
 
-- 
---------------------------------------------------------------------
 Steve Emsley                 Ecosystems Analysis & Management Group
 address@hidden              University of Warwick, England
 http://www.oikos.warwick.ac.uk/~sme/           (+44) (0)1598 753648
---------------------------------------------------------------------

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