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

Variable Index

 o displays
 o experiment

Constructor Index

 o Simulator()

Method Index

 o destroy()
when Simulator is destroyed, so is every Display
 o getParameters(int)
Return a parameter array if BNF(), parse(), and unparse() are to be automated, null otherwise.
 o initialize(int)
Initialize, either partially or completely.
 o paint(Graphics)
paint the main window for the simulator
 o run()
Start the project running, after all parsing is done.
 o setWatchManager(WatchManager, String)
Register all variables with this WatchManager.

Variables

 o experiment
 protected Experiment experiment[]
 o displays
 protected DisplayList displays

Constructors

 o Simulator
 public Simulator()

Methods

 o 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
 o paint
 public void paint(Graphics g)
paint the main window for the simulator

Overrides:
paint in class GWin
 o 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
 o run
 public void run()
Start the project running, after all parsing is done. This happens in a separate thread.

Overrides:
run in class Project
 o destroy
 public void destroy()
when Simulator is destroyed, so is every Display

Overrides:
destroy in class Project
 o 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