All Packages Class Hierarchy This Package Previous Next Index
Class sim.ForExperiment
java.lang.Object
|
+----sim.Experiment
|
+----sim.ForExperiment
- public class ForExperiment
- extends Experiment
This object sets up a series of experiments to be run.
This object takes as its parameters the name of a variable to
change in each experiment, the initial and final values of the
variable, the increment, and the experiment to run.
This code is (c) 1996 Mance E. Harmon
<harmonme@aa.wpafb.af.mil>,
http://www.cs.cmu.edu/~baird
The source and object code may be redistributed freely.
If the code is modified, please state so in the comments.
- Version:
- 1.02, 25 Aug 97
- Author:
- Mance E. Harmon, Leemon Baird
-
ForExperiment()
-
-
getParameters(int)
- Return a parameter array if BNF(), parse(), and unparse() are to be automated, null otherwise.
-
initialize(int)
- Initialize, either partially or completely.
-
runOneStep()
- This runs one step of the simulation.
-
setWatchManager(WatchManager, String)
- Register all variables with this WatchManager.
ForExperiment
public ForExperiment()
getParameters
public Object[][] getParameters(int lang)
- Return a parameter array if BNF(), parse(), and unparse() are to be automated, null otherwise.
- Overrides:
- getParameters in class Experiment
- See Also:
- getParameters
setWatchManager
public void setWatchManager(WatchManager wm,
String name)
- Register all variables with this WatchManager.
This will be called after all parsing is done.
setWatchManager should be overridden and forced to
call the same method on all the other objects in the experiment.
- Overrides:
- setWatchManager in class Experiment
runOneStep
public boolean runOneStep()
- This runs one step of the simulation. The function returns true when the simulation
is completely done. As the simulation is running, it should call
the watchManager.update() function when varaibles change so all the display
windows can be updated.
- Overrides:
- runOneStep in class Experiment
initialize
public void initialize(int level)
- Initialize, either partially or completely.
- Overrides:
- initialize in class Experiment
- See Also:
- initialize
All Packages Class Hierarchy This Package Previous Next Index