The source code for the Hysteresis applet is divided into five packages. Two of these packages, Hysteresis and HysteresisApplet, are specific to the Hysteresis applet. The other three packages, ConfigurePack, FastApplet, and RngPack, may be useful in many situations. I have used javadoc to generate Documentation for all five packages, with links to the source code. Below, you can find a breif description of each of the five packages, along with links for the source code for each of the packages.
DescriptionThe package edu.cornell.lassp.mck10.Hysteresis, written
by Matt Kuntz is at the
heart of the hysteresis applet. This is where all of the computatoin
is done. The main class in this package is the
|
Source Code |
||||
DescriptionThe classes in the HysteresisApplet package, written
by Matt Kuntz provide
a front end to the model implemented in the
Hysteresis
package. The applet itself is contained in the class
ViewsThere are two classes which are used to view the results of the
simulation: The The ControlsThere are also a number of controls in the HysteresisApplet
package. These include a The The The The |
Source Code |
||||
DescriptionThe ConfigurePack package, by Matt Kuntz
provides mechanisms for configuring variables in a number of
ways. The entire package is built around the class
One special type of ConfigureTextField and
ConfigureFrame classes are used. They simply use a text
field and the set(String) method to change the variable's
value. Since the ConfigurableCollection is itself a
configurable, it can also be placed in other collections to build
a heierarchical menu system.
The ConfigurePack package also allows variables to be easily and automatically set through < PARAM > tags. When variables are put into a menu tree, they receive a unique name, which can be used in param tags to set them. For this to work, the top level menu must be passed a pointer to the applet in it's constructor. Another important feature of the There are several basic types of
|
Source Code |
||||
DescriptionThe FastApplet package, by
Matt Kuntz, allows large
applets to display a "splash" screen long before all of their classes
have been loaded. The hysteresis applet is over 100K, overall, but
because it is loaded by FastApplet, a screen with a title,
a picture and a status message is displayed within a couple of seconds.
In order to use this package, the actual program must be implemented as
an The |
Source Code
|
||||
DescriptionPaul Houle has written a package for generating random numbers, called RngPack. He has implemented several research grade random number generators, including ranlux, ranmar, and ranecu. I used his ranmar generator to generate the random fields for the simulation. Paul has created a page all about the classes in RngPack. |
Source Code |