Quick Start
Try out the
Processing applets and
view
exhibition examples
This Package
- "index" - this file
- source - the Java source necessary to create Sim.jar. First
do "javac *.java" and then "jar -cvf Sim.jar *.class". The resulting
Sim.jar file is then used for standalone Java simulations, or
for Processing, it needs to be copied to the sketch "code" folders.
- processing - a collection of programs written in Processing,
to provide an audiovisual introduction to simulation. The index.html
file provides a quick link to the sketch applets.
- models - a collection of models from the book "Simulation Model
Design and Execution" (P. Fishwick, 1995), written in Java. To use
any of these models use the Sim.jar file from the source directory,
then "jar -xvf Sim.jar" to get the classes and then compile the
file(s): "javac *.java". Running a model can be done using
"java model" where 'model' is the name of the corresponding class
file.
Software for Computer Simulation Experiments
- BROWSER:
We recommend that you use
Mozilla Firefox for
running Processing. Internet Explorer may work fine also,
but the beta version of IE Version 7 has issues.
- JAVA:
Java SDK.
Before doing anything else, I recommend that you remove
all existing java implementations on your system and
install the latest Java. Technically, the Processing
environment is supposedly checked for Java 1.4 but
Java 1.5 seems to work fine. Simpackj has been tested
with 1.5 and exhibits no issues.
The SDK is preferred over the JRE, as
this could be useful
for certain types of Java code that you may be writing.
The SDK includes a JRE inside of it, so you get
everything.
- SIMPACK:
SimPack
(copy the most recent one)
and Documentation.
This file contains the main Java version of simpack (simpackj).
Copy the directories simpackj/simpackproc
and simpackj/libraries to your ..MyDocuments\Processing
directory (for Windows).
This will allow you
to play the examples from the Processing Integrated Development
Environment (IDE). To run Processing, just click on the icon
in the Processing directory. If you are interested in
running standalone code or rebuilding simpackj, read the
simpackj\source\readme.txt file first.
- PROCESSING:
Processing.
Enter your email address and instructions for downloading
will be issued through email. You should use the latest stable
version. You will be asked to create Processing-based files for your
homework or project. To do this, you can "Export" from
Processing, and this will create a new "applet" directory,
and a ".jar" file for your sketch. FYI: You can run this generated
jar from the command line. For example, if your sketch is
named "mysketch", and you export this sketch, then underneath
the applet directory for this sketch, execute
"java -cp mysketch.jar mysketch mysketch". When working with
Processing and Java, pay special attention to file names.
Java and Processing are case sensitive, so make sure that all
file names inside code are spelled out exactly as they appear
on the disk.
- JSYN:
Jsyn.
Press "Install Jsyn Plugin". If this does not work, they
will suggest that you
manually install it. For more detailed sound/audio work on the final
project, download the
SDK.
To run any Processing program using Jsyn, you must place the
".jar" files from the Jsyn in a directory called
"code" inside of your Processing sketch. See the Jsyn examples
in the processing directory as to how to do this. FYI: The Jsyn
.jar and .dll files should be placed underneath your Processing
sketch's "code" folder, and all files (such as sample files) should
be placed under "data". Samples must be monaural. If you have a stereo
.wav file, convert it to mono with an audio editor such as GoldWave.
- JET:
The following is purely optional.
To create native code .exe files (Windows) of any Java or Processing
codes, download and install Jet. Most Processing applets appear to be as fast as
what you can do with this compiler, however, the compiler does
produce .exe files which can be useful. Here is how to create an exe file:
(1) Export your sketch from Processing; (2) Go to the applet directory,
and preferably copy this directory to another location;
(3) From this new location, execute "jar -xvf mysketch.jar" where
"mysketch" is assumed to be the name of the sketch; (4) run
"jc mysketch"; (5) this creates a "mysketch.exe".