org.ascape.util.data
Class StatCollectorCondCSAMMVar

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

public abstract class StatCollectorCondCSAMMVar
extends StatCollectorCSAMMVar
implements Conditional

Stores conditional aggregate data for values conditionally obtained for a statistic, including running sum, average, minimum and maximum. See StatCollectorCSA for an example.

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
StatCollectorCondCSAMMVar()
          Constructs a new StatCollectorCondCSAMMVar.
StatCollectorCondCSAMMVar(java.lang.String name)
          Constructs a new StatCollectorCondCSAMMVar.
StatCollectorCondCSAMMVar(java.lang.String name, boolean autoCollect)
          Constructs a new StatCollectorCondCSAMMVar.
 
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.StatCollectorCSAMMVar
addValue, clear, getStDev, getVar
 
Methods inherited from class org.ascape.util.data.StatCollectorCSAMM
getMax, getMin
 
Methods inherited from class org.ascape.util.data.StatCollectorCSA
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

StatCollectorCondCSAMMVar

public StatCollectorCondCSAMMVar()
Constructs a new StatCollectorCondCSAMMVar.


StatCollectorCondCSAMMVar

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

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

StatCollectorCondCSAMMVar

public StatCollectorCondCSAMMVar(java.lang.String name)
Constructs a new StatCollectorCondCSAMMVar. (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.