com.jeantessier.metrics
Class SumMeasurement
java.lang.Object
|
+--com.jeantessier.metrics.MeasurementBase
|
+--com.jeantessier.metrics.SumMeasurement
- All Implemented Interfaces:
- Measurement
- public class SumMeasurement
- extends MeasurementBase
Adds up numerical values. Use it with just one term to alias
other measurements.
This is the syntax for initializing this type of
measurement:
<init>
number | measurement name [DISPOSE_x]
...
</init>
| Methods inherited from class com.jeantessier.metrics.MeasurementBase |
add, add, add, add, add, doubleValue, floatValue, getContext, getDescriptor, getLongName, getShortName, getValue, intValue, isCached, isInRange, longValue, perl, setCached, setEmpty, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SumMeasurement
public SumMeasurement(MeasurementDescriptor descriptor,
Metrics context,
java.lang.String initText)
getTerms
public java.util.List getTerms()
isEmpty
public boolean isEmpty()
- Overrides:
isEmpty in class MeasurementBase
accept
public void accept(MeasurementVisitor visitor)
compute
protected double compute()
- Overrides:
compute in class MeasurementBase
Dependency Finder 1.1.0 © 2001-2004 Jean Tessier.