Class AbstractMeasureProvider
- java.lang.Object
-
- org.palladiosimulator.measurementframework.measureprovider.AbstractMeasureProvider
-
- All Implemented Interfaces:
IMeasureProvider
- Direct Known Subclasses:
MeasurementListMeasureProvider
public abstract class AbstractMeasureProvider extends Object implements IMeasureProvider
Abstract implementation of a measure provider.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractMeasureProvider()
Default Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description javax.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)
-
-
-
Method Detail
-
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
public abstract List<javax.measure.Measure<?,?>> 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.
-
-