[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Scheduling Question (off-by-one error)
From: |
Christopher J. Mackie |
Subject: |
RE: Scheduling Question (off-by-one error) |
Date: |
Sun, 14 Apr 2002 11:06:23 -0400 |
Thanks--that's exactly what it was, and the graphs are now looking as they
should.
I'm willing to update the Java tutorial to reflect this information, if you
think it's worth adding? --Chris
-----Original Message-----
From: address@hidden
[mailto:address@hidden Behalf Of Paul Johnson
Sent: Sunday, April 14, 2002 8:19 AM
To: address@hidden
Subject: Re: Scheduling Question (off-by-one error)
I'm not digging through the detail of your model, but I've encountered
this problem before.
Look at your activateIn method and the order in which the things are
activated. I think you will find this in activateIn:
[modelSwarm activateIn: self];
[displaySchedule activateIn: self];
Which causes the model steps to be ahead of the display steps. Try
reversing them.
Before my recent deep exploration of Scheduling for the last Swarmfest,
I think I worked around this by making agents wait until time 1 to take
a step. You could consider that as well.
==================================
Swarm-Modelling is for discussion of Simulation and Modelling techniques
esp. using Swarm. For list administration needs (esp. [un]subscribing),
please send a message to <address@hidden> with "help" in the
body of the message.
==================================