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, numberFormat
EOL
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, newObservation
clone, getCount, getDataLine, getMaxObs, getMinObs, getName, newObservation, newObservation, newObservation, setName, setNumberFormat, setSamplingType, toString
protected 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 SampleStatistics
reset
in class SimpleStatsTally
public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange
in interface java.beans.PropertyChangeListener
propertyChange
in class AbstractSimpleStats
evt
- Given PropertyChangeEventpublic java.util.Map<java.lang.Object,SimpleStatsTally> getAllStats()
public SimpleStatsTally getStatsFor(java.lang.Object source)
source
- Given source of state transitions