swarm-support
[Top][All Lists]
Advanced

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

[Q] Noddy scheduling question


From: Gary Polhill
Subject: [Q] Noddy scheduling question
Date: Tue, 06 Jul 1999 09:57:11 +0100

I have a schedule with a set of initial actions (to take place once, at
the beginning of the sim) and a set of actions to be repeated on a cycle
by cycle basis, and I just wanted to check that I haven't missed
something obvious. I have implemented this using two separate schedules,
one for the initial action group, and one for the main action group.

  // Initial actions

  initialSchedule = [Schedule createBegin: self];
  initialSchedule = [initialSchedule createEnd];
  [initialSchedule at: 0 createAction: initialActions];

  // Main (repeated) actions

  modelSchedule = [Schedule createBegin: self];
  [modelSchedule setRepeatInterval: 2];
  modelSchedule = [modelSchedule createEnd];
  [modelSchedule at: 1 createAction: modelActions];

Note that the repeat interval for modelSchedule is 2. When I set it to
1, I got the error message "cannot insert action at time greater than
or equal to repeat interval" -- which struck me as being an odd
constraint. Is there something inherently wrong with wanting to start
something at time 10, say, that will then repeat each time slot?

More to the point, is there a better way to implement a schedule
with an initial set of actions followed by a repeating set of actions
than the way I've outlined above? One that, perhaps, has a repeat
interval of 1?

Or perhaps there are philosophical/moral objections to such schedules?

Gary


(Noddy, btw, is a sort of English Mickey Mouse.)

-- 

Macaulay Land Use Research Institute, Craigiebuckler, Aberdeen. AB15 8QH
Tel: +44 (0) 1224 318611               Email: 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]