|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.ucla.stat.SOCR.core.SOCRValueSettable edu.ucla.stat.SOCR.core.MultiplePartsPanel edu.ucla.stat.SOCR.core.Game edu.ucla.stat.SOCR.games.RedBlackGame
public class RedBlackGame
This class models the red-black game. A player plays Bernoulli trials against the house at even stakes until she loses her fortune or reaches a specified target fortune.
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 | |
---|---|
RedBlackGame()
This method initializes the experiment. |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent event)
This method handles the events associated with the buttons. |
void |
itemStateChanged(java.awt.event.ItemEvent event)
This method handles the choice events assoicated with changing the target fortune. |
void |
reset()
This method resets the experiment. |
void |
resetBet()
This method resets the bet. |
void |
resetGame()
This method resets the game. |
void |
update(java.util.Observable o,
java.lang.Object arg)
This method handles the scroll events associated with changing the initial fortune or the probability of success. |
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 |
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 RedBlackGame()
Method Detail |
---|
public void reset()
reset
in interface IGame
reset
in class Game
public void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed
in interface java.awt.event.ActionListener
actionPerformed
in class Game
public void itemStateChanged(java.awt.event.ItemEvent event)
itemStateChanged
in interface java.awt.event.ItemListener
public void resetGame()
public void resetBet()
public void update(java.util.Observable o, java.lang.Object arg)
update
in interface java.util.Observer
update
in class MultiplePartsPanel
Observer.update(java.util.Observable, java.lang.Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |