Class MeasurementListMeasureProvider
java.lang.Object
org.palladiosimulator.measurementframework.measureprovider.AbstractMeasureProvider
org.palladiosimulator.measurementframework.measureprovider.MeasurementListMeasureProvider
- All Implemented Interfaces:
IMeasureProvider
A measurement list measure provider uses a list of measurements to determine measures.
-
Constructor Summary
ConstructorDescriptionMeasurementListMeasureProvider
(List<MeasuringValue> measurements) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionfinal List<javax.measure.Measure<?,
?>> asList()
Returns the list of measure objects via a Java utils list.getMeasurementForMetric
(org.palladiosimulator.metricspec.MetricDescription wantedMetric) final List<MeasuringValue>
Returns the list of subsumed measurements managed by this class.toString()
Methods inherited from class org.palladiosimulator.measurementframework.measureprovider.AbstractMeasureProvider
asArray, getMeasureForMetric
-
Constructor Details
-
MeasurementListMeasureProvider
Default constructor. Initializes this measure provider using a given list of measurements. Each such measurement comes with measures to be provided.- Parameters:
measurements
- the given list of measurements.
-
-
Method Details
-
getMeasurementForMetric
public MeasuringValue getMeasurementForMetric(org.palladiosimulator.metricspec.MetricDescription wantedMetric) - Specified by:
getMeasurementForMetric
in classAbstractMeasureProvider
-
asList
Returns the list of measure objects via a Java utils list.- Specified by:
asList
in interfaceIMeasureProvider
- Specified by:
asList
in classAbstractMeasureProvider
- Returns:
- the list of measure objects.
-
toString
-
getSubsumedMeasurements
Returns the list of subsumed measurements managed by this class.- Returns:
- the list of subsumed measurements.
-