public class GameStatistics
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
jadex.commons.SimplePropertyChangeSupport |
pcs
The helper object for bean events.
|
Constructor and Description |
---|
GameStatistics()
The constructor initialises the class-variables
|
Modifier and Type | Method and Description |
---|---|
void |
addGameRound(Dealer dealer,
Player[] players)
This method is called by the master plan whenever
a game has finished.
|
void |
addPropertyChangeListener(jadex.commons.beans.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
|
java.util.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(jadex.commons.beans.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.
|
public jadex.commons.SimplePropertyChangeSupport pcs
public GameStatistics()
public void setShowDealer(boolean show)
public void addGameRound(Dealer dealer, Player[] players)
public java.util.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(jadex.commons.beans.PropertyChangeListener listener)
listener
- The PropertyChangeListener to be added.public void removePropertyChangeListener(jadex.commons.beans.PropertyChangeListener listener)
listener
- The PropertyChangeListener to be removed.