org.ascape.util.data
Class StatCollectorCondCSA

java.lang.Object
  extended by org.ascape.util.data.StatCollector
      extended by org.ascape.util.data.StatCollectorCSA
          extended by org.ascape.util.data.StatCollectorCondCSA
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable, Conditional, DataPoint, HasName

public abstract class StatCollectorCondCSA
extends StatCollectorCSA
implements Conditional

Stores aggregate data for values conditionally obtained for a statistic, including running sum and average.

Since:
1.0
Version:
1.2
Author:
Miles Parker
See Also:
StatCollector, StatCollectorCond, Serialized Form

Field 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
StatCollectorCondCSA()
          Constructs a new StatCollectorCondCSA.
StatCollectorCondCSA(java.lang.String name)
          Constructs a new StatCollectorCondCSA.
StatCollectorCondCSA(java.lang.String name, boolean autoCollect)
          Constructs a new StatCollectorCondCSA.
 
Method Summary
 void addValueFor(java.lang.Object object)
          Add value to stat calculation for this object if condition met.
 
Methods inherited from class org.ascape.util.data.StatCollectorCSA
addValue, clear, getAvg, getSum, getTotal
 
Methods inherited from class org.ascape.util.data.StatCollector
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
 
Methods inherited from interface org.ascape.util.Conditional
meetsCondition
 

Constructor Detail

StatCollectorCondCSA

public StatCollectorCondCSA()
Constructs a new StatCollectorCondCSA.


StatCollectorCondCSA

public StatCollectorCondCSA(java.lang.String name,
                            boolean autoCollect)
Constructs a new StatCollectorCondCSA.

Parameters:
name - the name of the stat collector.
autoCollect - should the stat be collected automatically?

StatCollectorCondCSA

public StatCollectorCondCSA(java.lang.String name)
Constructs a new StatCollectorCondCSA. (Automatic by default.)

Parameters:
name - the name of the stat collector.
Method Detail

addValueFor

public void addValueFor(java.lang.Object object)
Add value to stat calculation for this object if condition met.

Overrides:
addValueFor in class StatCollector


Copyright © 1998-2008 The Brookings Institution, NuTech Solutions, Metascape, LLC All Rights Reserved.