com.jeantessier.metrics
Class NbSubMetricsMeasurement
java.lang.Object
|
+--com.jeantessier.metrics.MeasurementBase
|
+--com.jeantessier.metrics.NbSubMetricsMeasurement
- All Implemented Interfaces:
- Measurement
- public class NbSubMetricsMeasurement
- extends MeasurementBase
Counts the number of submetrics according to selection
criteria. If there are no criteria, it matches all
submetrics. Each criterion is a boolean expression
with measurement names, numbers, and boolean operators
(<, <=, >, >=, ==, and !=). If a submetric matches
any one of the expressions in the criteria, it is
included in the count.
This is the syntax for initializing this type of
measurement:
<init>
(number | measurement name [DISPOSE_x]) [operator [(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 |
NbSubMetricsMeasurement
public NbSubMetricsMeasurement(MeasurementDescriptor descriptor,
Metrics context,
java.lang.String initText)
getTerms
public java.util.List getTerms()
accept
public void accept(MeasurementVisitor visitor)
isEmpty
public boolean isEmpty()
- Overrides:
isEmpty in class MeasurementBase
compute
protected double compute()
- Overrides:
compute in class MeasurementBase
Dependency Finder 1.1.0 © 2001-2004 Jean Tessier.