Technical Information for DGP Applet
Technical Information
The DGP applet consists of about 100 Java classes and 'gif' files. To speed up the loading of the applet, the DGP applet classes are bundled into a single JAR file which can be downloaded to your browser in a single HTTP transaction. If each of the DGP applet classes is stored as an individual file on the server, then browsers will have to download them file by file.
You can run the DGP applet offline as a Java application. The DGP application has all the functionalities of the applet and runs as a distributed application, communicating with the server at the various stages of its run. In addition, the application has the following advantages :
- You have the flexibility to stop the run before the specified number of generations have completed, save the population and the parameter settings and continue the run later on from where you left off previously. You will be asked to save the population and parameter settings whenever you stop the run before its natural end via Dialogs. Everytime you start the DGP application, you will be prompted as to whether you would like to load a previously saved population and parameter settings to continue a previous run. This functionality is absent in the DGP applet because applet security does not allow access to the local file system.
- You may resize the application window at your discretion and the layout adjusts.
To run as an application,
- Download the zipped JAR file DGPBundle.jar.zip into your directory.
- Unzipped DGPBundle.jar.zip into DGPBundle.jar.
- Set your CLASSPATH to point to this JAR file. For example, if the JAR file is donwload into /home/applets/DGPBundle.jar, then set your classpath to /home/applets/DGPBundle.jar.
- Use a Java interpreter, such as SUN's java or Microsoft's jview to run the DGP application. The commands to enter are :
- for java from the SUN JDK :
java DGP
- for jview from Microsoft's Visual J++ :
jview DGP
The applet was compiled with SUN's JDK version 1.1.6 and tested to work with Netscape Navigator version 4.05, Microsoft Internet Explorer 4.0 and SUN's appletviewer on SUN machines and on PCs.
Testings done show that the applet will not run using Netscape version 3 on all platforms as well as Netscape version 4.05 on Digital Alpha machines. The applet can, however, be run on the Digital Alpha machines using appletviewer or as an application.
This page has had
hits since 24 August 1998.
Last updated on 24/08/98