The Chase Application

Last modified: "July 19, 2000 12:25:51 by evett"
To run the application, download this java archive (.jar) file. From that same directory, executate the application via "java Gazelle". In the File menu, choose "Load and Run". You will be prompted to select a data file. When that is done, the application should display the positions of the gazelle and lions, with the view always centered on the gazelle. Your CLASSPATH variable should include ".", the current working directory. The first line of the input data file to the java application should consist of a single integer, n, between 1 and 6, equal to the number of lions in the simulation. (I provided a bit more capcity than you'll use, as your maximum number of lions is 6.) All subsequent lines are of the form:

Xg Yg Tg X1 Y1 T1 X2 Y2 T2 ... Xn Yn Tn

Where all the elements of each line are floating point numbers. Xg Yg Tg are the coordinates and heading of the gazelle, X1 Y1 T1 are the coordinates and heading of the 1st lion, etc.

Here is the jar file, Gazelle.jar, containing the classes of the Java application. You will need to have installed JDK1.2 (or higher) to run the application. Here are the instructions for installing jdk1.2.1 on a Windows machine.

Once you've downloaded the file, you can run the application via the command: java -jar Gazelle.jar.

Here is a test input file for the application.

For more information about running JAR encapsulated applications, see the Java documentation.