edu.ucla.stat.SOCR.core
Class Game

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
All Implemented Interfaces:
IGame, IValueSettable, Pluginable, java.awt.event.ActionListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener, java.util.Observer
Direct Known Subclasses:
BivariateGame, ErrorGame, FourierGame, GaltonBoardGame, HistogramGame, MontyHallGame, RedBlackGame, WaveletGame

public class Game
extends MultiplePartsPanel
implements java.awt.event.ActionListener, IGame

This class defines a basic shell for an interactive exploration. Typically, the user generates the data by making choices in a game or by clicking on a number line or scatter plot. This class must be sub-classed to add the appropriate functionality


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
Game()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 java.lang.String getAppletInfo()
           
 java.awt.Container getDisplayPane()
           
static IGame getInstance(java.lang.String classname)
           
 java.lang.String getOnlineDescription()
          This method returns an online description of this Statistical Analysis.
 void performAction()
           
 void reset()
          This is the method for resetting the game and should be overridden.
 void setAppletInfo(java.lang.String _appletInfoString)
          This method returns basic information about the applet, including copyright information, descriptive information, and instructions.
 void updateGame(java.awt.Graphics g)
           
 
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

Game

public Game()
Method Detail

getInstance

public static IGame getInstance(java.lang.String classname)
                         throws java.lang.Exception
Throws:
java.lang.Exception

reset

public void reset()
This is the method for resetting the game and should be overridden.

Specified by:
reset in interface IGame

getOnlineDescription

public java.lang.String getOnlineDescription()
This method returns an online description of this Statistical Analysis. It should be overwritten by each specific analysis method.

Specified by:
getOnlineDescription in interface IGame

setAppletInfo

public void setAppletInfo(java.lang.String _appletInfoString)
This method returns basic information about the applet, including copyright information, descriptive information, and instructions.


getAppletInfo

public java.lang.String getAppletInfo()

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

performAction

public void performAction()

updateGame

public void updateGame(java.awt.Graphics g)

getDisplayPane

public java.awt.Container getDisplayPane()
Specified by:
getDisplayPane in interface Pluginable