Beanshell Scripting Appendix

Main Menu           Previous Topic                                                           Next Topic

Running Experiments in the Smallpox Dynamics Tutorial

In this tutorial, we display graphs and charts that demonstrate various results of running the agent-based model. To gather data that's plotted on these graphs, we use the Beanshell Scripting capabilities of the Simulator. Then we export the data to a text file, and process it using a statistics package.

In the next three slides we present the Beanshell scripts that we used. They each follow the same general pattern: a scripting function to generate data, as well as an output function. Please refer to the online Scripting Tutorial for detailed instructions on how to create and understand such scripts.

                   Previous Slide                                                           Next Slide