|
From: | Steve Railsback |
Subject: | Re: [Swarm-Support] Time Stepping in Swarm. |
Date: | Sun, 16 Jan 2005 14:24:14 -0800 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) |
Mervin Chan wrote:
Is there away to step time in Swarm such that time will only increment upon hitting a key?
The main control panel lets you stop a simulation, then step it manually (via the "Step" button).
In your code, you can tell the model to stop and wait for you to do this, once it is all built and ready to run. Send a message "setStateStopped" to the control panel (look in the SimtoolsGui library documentation for the ControlPanel).
Steve R. -- Lang Railsback & Assoc. 250 California Ave. Arcata, California 95521 707 822 0453
[Prev in Thread] | Current Thread | [Next in Thread] |