edu.ucla.stat.SOCR.games
Class GaltonBoardGame

java.lang.Object
  extended by edu.ucla.stat.SOCR.core.SOCRValueSettable
      extended by edu.ucla.stat.SOCR.core.MultiplePartsPanel
          extended by edu.ucla.stat.SOCR.core.Game
              extended by edu.ucla.stat.SOCR.games.GaltonBoardGame
All Implemented Interfaces:
IGame, IValueSettable, Pluginable, java.awt.event.ActionListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener, java.util.Observer

public class GaltonBoardGame
extends Game

This class models a simple Galton board game. The user clicks on buttons to move right or left. The applet shows the path through the Galton board, the corresponding bit string, and the corresponding subset.


Nested Class Summary
 
Nested classes/interfaces inherited from class edu.ucla.stat.SOCR.core.MultiplePartsPanel
MultiplePartsPanel.SOCRToolBar
 
Field Summary
 
Fields inherited from class edu.ucla.stat.SOCR.core.MultiplePartsPanel
applet, fName, graphs, mainPane, recordTable, tables, toolbar, toolbar2, toolbars
 
Constructor Summary
GaltonBoardGame()
          This method initializes the experiment.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent event)
          This method handles the actions associated with the left and right buttons.
 void reset()
          This method resets the experiment.
 void setText()
          This method sets the text in the record table.
 
Methods inherited from class edu.ucla.stat.SOCR.core.Game
getAppletInfo, getDisplayPane, getInstance, getOnlineDescription, performAction, setAppletInfo, updateGame
 
Methods inherited from class edu.ucla.stat.SOCR.core.MultiplePartsPanel
addGraph, addTable, addTool, addTool2, addToolbar, format, getMainPanel, getName, getRecordTable, getTextPanel, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, play, removeToolbar, setApplet, setName, update
 
Methods inherited from class edu.ucla.stat.SOCR.core.SOCRValueSettable
createComponentSetter, createValueSetter, createValueSetter, createValueSetter, createValueSetter, getComponentSetter, getComponentSetters, getValueSetter, getValueSetters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.ucla.stat.SOCR.core.Pluginable
getName, setApplet
 

Constructor Detail

GaltonBoardGame

public GaltonBoardGame()
This method initializes the experiment.

Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent event)
This method handles the actions associated with the left and right buttons.

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Overrides:
actionPerformed in class Game

setText

public void setText()
This method sets the text in the record table.


reset

public void reset()
This method resets the experiment.

Specified by:
reset in interface IGame
Overrides:
reset in class Game