|
Jadex 0.96 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjadex.examples.blackjack.GameStatistics
public class GameStatistics
This class holds all necessary information, that might be shown on the StatisticGraph.
Field Summary | |
---|---|
SimplePropertyChangeSupport |
pcs
The helper object for bean events. |
Constructor Summary | |
---|---|
GameStatistics()
The constructor initialises the class-variables |
Method Summary | |
---|---|
void |
addGameRound(Dealer dealer,
Player[] players)
This method is called by the master plan whenever a game has finished. |
void |
addPropertyChangeListener(PropertyChangeListener listener)
Add a PropertyChangeListener to the listener list. |
int |
getMaximum()
returns highest-account-status of either a player or the dealer |
int |
getMaxRound()
returns maximum roundNumber |
int |
getMinimum()
returns lowest-account-status of either a player or the dealer |
Iterator |
getPlayers()
return all the player-names |
int[] |
getXArray(Player player)
returns an array with roundNumbers, either of an player or of the dealer |
int[] |
getYArray(Player player)
returns an array with account-stati, either of an player or of the dealer |
boolean |
isDataAvailable()
Is statistical data available ? |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Remove a PropertyChangeListener from the listener list. |
void |
setShowDealer(boolean show)
This method is called by the actionPerformed-method of the StatisticGraph-object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public SimplePropertyChangeSupport pcs
Constructor Detail |
---|
public GameStatistics()
Method Detail |
---|
public void setShowDealer(boolean show)
public void addGameRound(Dealer dealer, Player[] players)
public Iterator getPlayers()
public boolean isDataAvailable()
public int[] getXArray(Player player)
public int[] getYArray(Player player)
public int getMaxRound()
public int getMaximum()
public int getMinimum()
public void addPropertyChangeListener(PropertyChangeListener listener)
listener
- The PropertyChangeListener to be added.public void removePropertyChangeListener(PropertyChangeListener listener)
listener
- The PropertyChangeListener to be removed.
|
Jadex 0.96 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.