public class TallyStatsBySource extends SimpleStatsTally
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.Object,SimpleStatsTally> |
allStats |
count, DEFAULT_NAME, DEFAULT_NUMBER_FORMAT, maxObs, minObs, name, numberFormatEOL| Constructor and Description |
|---|
TallyStatsBySource(java.lang.String stateName)
Instantiate a TallyStatsBySource for state given by stateName
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.Object,SimpleStatsTally> |
getAllStats() |
SimpleStatsTally |
getStatsFor(java.lang.Object source) |
void |
propertyChange(java.beans.PropertyChangeEvent evt)
If propertyName is the one we are listening for, update the global
tally.
|
void |
reset()
Clears all statistics
|
getMean, getSamplingType, getStandardDeviation, getVariance, newObservationclone, getCount, getDataLine, getMaxObs, getMinObs, getName, newObservation, newObservation, newObservation, setName, setNumberFormat, setSamplingType, toStringprotected java.util.Map<java.lang.Object,SimpleStatsTally> allStats
public TallyStatsBySource(java.lang.String stateName)
stateName - Given name of state to listen forpublic void reset()
reset in interface SampleStatisticsreset in class SimpleStatsTallypublic void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange in interface java.beans.PropertyChangeListenerpropertyChange in class AbstractSimpleStatsevt - Given PropertyChangeEventpublic java.util.Map<java.lang.Object,SimpleStatsTally> getAllStats()
public SimpleStatsTally getStatsFor(java.lang.Object source)
source - Given source of state transitions