Class GaltonBoardGame

  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
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
Field Summary
Fields inherited from class edu.ucla.stat.SOCR.core.MultiplePartsPanel
applet, fName, graphs, mainPane, recordTable, tables, toolbar, toolbar2, toolbars
Constructor Summary
          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


public GaltonBoardGame()
This method initializes the experiment.

Method Detail


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
actionPerformed in class Game


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


public void reset()
This method resets the experiment.

Specified by:
reset in interface IGame
reset in class Game