[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: start a model schedule in the future?
From: |
Doug Donalson |
Subject: |
Re: start a model schedule in the future? |
Date: |
Sat, 20 May 2000 11:15:35 -0700 |
I've never tried this, but couldn't you do something like:
- (void) startNewSchedule
{
start new schedule stuff here
}
and then:
eventSchedule = [Schedule createBegin: [self getZone]];
[eventSchedule setAutoDrop: 1];
eventSchedule = [eventSchedule createEnd];
[eventSchedule at: getUPar("agentMemory") + getUPar("MxWS") createActionTo:
self message: M(startNewSchedule)];
I have no idea whether this will work, but what the heck...
Cheers,
D3
----- Original Message -----
From: Rick Riolo <address@hidden>
To: Swarm-Support <address@hidden>
Sent: Saturday, May 20, 2000 8:37 AM
Subject: start a model schedule in the future?
>
> This must have been covered in a previous question, but
> I can't find it...so feel free to point me to an item
> if you know if it...
>
> I'd like to start a model schedule at a time > 0,
> but then have it repeat forever, eg
>
> modelSchedule = [Schedule createBegin: [self getZone]];
> [modelSchedule setRepeatInterval: 1];
> modelSchedule = [modelSchedule createEnd];
> [modelSchedule at: getUPar("agentMemory") + getUPar("MxWS")
> createAction: modelActions];
>
> But then I get this message:
>
> > cannot insert action at time greater than or equal to repeat interval
>
> What's the best way to do this?
> thanks!
> - r
>
> ps if it matters, this is with 1.4.1 .
>
> Rick Riolo address@hidden
> Center for Study of Complex Systems (CSCS)
> 4477 Randall Lab
> University of Michigan Ann Arbor MI 48109-1120
> Phone: 734 763 3323 Fax: 734 763 9267
> http://www.pscs.umich.edu/PEOPLE/rlr-home.html
>
>
> ==================================
> 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.
>
==================================
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.