Sunday, July 31, 2011

GUI

A user can interact with a non-batch Repast simulation through the gui. The gui allows the user to start, stop, pause, setup, and exit a simulation through the toolbar. The table below lists the toolbar buttons and their functions.



Start Multi-Run   Step   Initialize      Stop        Pause       Setup         Load Model                                             
                                             
View Settings      Exit  
                 X


Start Multi-Run: The start multi-run button starts a batch run of a simulation. See How to Use the Multi-Run for more details.
Start: The start button starts the simulation when it is paused or has not yet been started, iterating through the scheduled behavior.
Step: The step button starts the simulation when it is paused or has not yet been started, iterating through a single iteration the scheduled behavior.
Initialize: The initialize button starts the simulation but pauses before iterating any scheduled behavior. Only the initializing code is executed in this case.
Stop: The stop button stops the simulation.
Pause: The pause button pauses the simulation.
Setup: The setup button "sets up" the simulation by executing the user defined setup code.
Load Model: The load model button pops up a dialog allowing the user to specify a model to load.
View Settings: The view settings button will display the various model settings panel if it is hidden or destroyed.
Exit: The exit button will shutdown the simulation and exit.


To run a simulation you would click either the start, step or initialize buttons. If you click the initialize button, you would then click step or start. When you want to stop the simulation and then run it again, you click stop and then the setup button.

No comments:

Post a Comment