All Packages Class Hierarchy This Package Previous Next Index
Class sim.Simulator
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----GWin
|
+----Project
|
+----sim.Simulator
- public class Simulator
- extends Project
Run a simulation, particularly involving neural nets
and reinforcement learning.
This code is (c) 1996 Leemon Baird
<leemon@cs.cmu.edu>,
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.1, 18 July 97
- Author:
- Leemon Baird
-
displays
-
-
experiment
-
-
Simulator()
-
-
destroy()
- when Simulator is destroyed, so is every Display
-
getParameters(int)
- Return a parameter array if BNF(), parse(), and unparse() are to be automated, null otherwise.
-
initialize(int)
- Initialize, either partially or completely.
-
paint(Graphics)
- paint the main window for the simulator
-
run()
- Start the project running, after all parsing is done.
-
setWatchManager(WatchManager, String)
- Register all variables with this WatchManager.
experiment
protected Experiment experiment[]
displays
protected DisplayList displays
Simulator
public Simulator()
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 Project
- See Also:
- getParameters
paint
public void paint(Graphics g)
- paint the main window for the simulator
- Overrides:
- paint in class GWin
setWatchManager
public void setWatchManager(WatchManager wm,
String name)
- Register all variables with this WatchManager.
This method should register all the variables in this object and
in those it links to. The name of each variable should be
appended to the end of the String name.
- Overrides:
- setWatchManager in class Project
run
public void run()
- Start the project running, after all parsing is done.
This happens in a separate thread.
- Overrides:
- run in class Project
destroy
public void destroy()
- when Simulator is destroyed, so is every Display
- Overrides:
- destroy in class Project
initialize
public void initialize(int level)
- Initialize, either partially or completely.
- Overrides:
- initialize in class Project
- See Also:
- initialize
All Packages Class Hierarchy This Package Previous Next Index