|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ascape.util.data.StatCollector
org.ascape.util.data.StatCollectorCSA
org.ascape.util.data.StatCollectorCSAMM
public class StatCollectorCSAMM
Stores aggregate data for values obtained for a statistic, including running sum, average, minimum and maximum. See StatCollectorCSA for an example.
StatCollector
,
StatCollectorCond
,
Serialized FormField Summary |
---|
Fields inherited from class org.ascape.util.data.StatCollectorCSA |
---|
sum |
Fields inherited from class org.ascape.util.data.StatCollector |
---|
allMeasureNames, allMeasureNamesShort, autoCollect, COLLECTING, count, name, NOT_COLLECTING, SET_BY_DATAGROUP |
Constructor Summary | |
---|---|
StatCollectorCSAMM()
Constructs a new StatCollectorCSAMM. |
|
StatCollectorCSAMM(java.lang.String name)
Constructs a new StatCollectorCSAMM. |
|
StatCollectorCSAMM(java.lang.String name,
boolean autoCollect)
Constructs a new StatCollectorCSAMM. |
Method Summary | |
---|---|
void |
addValue(double value)
Add the value, incrementing count, adding sum, and checking for minimum and maximum. |
void |
clear()
Sets all values statistics to base values (0 or max.) |
double |
getMax()
Returns the maximum value added. |
double |
getMin()
Returns the minimum value added. |
Methods inherited from class org.ascape.util.data.StatCollectorCSA |
---|
getAvg, getSum, getTotal |
Methods inherited from class org.ascape.util.data.StatCollector |
---|
addValueFor, calculateCollection, calculateIterator, calculateValue, compareTo, createDataSeries, getAllDataSeries, getAllMeasureNames, getAllMeasureNamesShort, getCollectingLongitudinalDataMode, getCount, getDataGroup, getDataSeries, getName, getValue, isAutoCollect, isCalculated, isCollectingLongitudinalData, isPhase2, setAutoCollect, setCollectingLongitudinalDataMode, setDataGroup, setName, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StatCollectorCSAMM()
public StatCollectorCSAMM(java.lang.String name, boolean autoCollect)
name
- the name of the stat collector.autoCollect
- should the stat be collected automatically?public StatCollectorCSAMM(java.lang.String name)
name
- the name of the stat collector.Method Detail |
---|
public void clear()
clear
in class StatCollectorCSA
public void addValue(double value)
addValue
in class StatCollectorCSA
public double getMin()
public double getMax()
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |