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, Cached, Cached, Context, Descriptor, doubleValue, floatValue, InRange, intValue, LongName, longValue, Perl, ShortName, toString, Value |
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 init_text)
Terms
public java.util.List Terms()
Accept
public void Accept(MeasurementVisitor visitor)
Compute
protected double Compute()
- Overrides:
Compute
in class MeasurementBase