Class AbstractMeasureProvider
java.lang.Object
org.palladiosimulator.measurementframework.measureprovider.AbstractMeasureProvider
- All Implemented Interfaces:
IMeasureProvider
- Direct Known Subclasses:
MeasurementListMeasureProvider
Abstract implementation of a measure provider.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjavax.measure.Measure<?,
?>[] asArray()
Returns the list of measure objects via an array.abstract List<javax.measure.Measure<?,
?>> asList()
Returns the list of measure objects via a Java utils list.<V,
Q extends javax.measure.quantity.Quantity>
javax.measure.Measure<V,Q> getMeasureForMetric
(org.palladiosimulator.metricspec.MetricDescription wantedMetric) Returns a measure object by looking for a given metric conforming to that measure object.abstract MeasuringValue
getMeasurementForMetric
(org.palladiosimulator.metricspec.MetricDescription metricDesciption)
-
Constructor Details
-
AbstractMeasureProvider
protected AbstractMeasureProvider()Default Constructor.
-
-
Method Details
-
getMeasureForMetric
public <V,Q extends javax.measure.quantity.Quantity> javax.measure.Measure<V,Q> getMeasureForMetric(org.palladiosimulator.metricspec.MetricDescription wantedMetric) Returns a measure object by looking for a given metric conforming to that measure object.- Specified by:
getMeasureForMetric
in interfaceIMeasureProvider
- Type Parameters:
V
- Value type of the measure, e.g., Double.Q
- Quantity of the measure, e.g., 2.0 seconds.- Parameters:
wantedMetric
- The metric to look for.- Returns:
- A measure object conforming to the given metric.
-
getMeasurementForMetric
public abstract MeasuringValue getMeasurementForMetric(org.palladiosimulator.metricspec.MetricDescription metricDesciption) -
asList
Returns the list of measure objects via a Java utils list.- Specified by:
asList
in interfaceIMeasureProvider
- Returns:
- the list of measure objects.
-
asArray
public javax.measure.Measure<?,?>[] asArray()Returns the list of measure objects via an array.- Specified by:
asArray
in interfaceIMeasureProvider
- Returns:
- the array of measure objects.
-