Class MeasuringValue
java.lang.Object
org.palladiosimulator.measurementframework.MeasuringValue
- All Implemented Interfaces:
IMeasureProvider
,org.palladiosimulator.metricspec.metricentity.IMetricEntity
- Direct Known Subclasses:
BasicMeasurement
,TupleMeasurement
public abstract class MeasuringValue
extends Object
implements IMeasureProvider, org.palladiosimulator.metricspec.metricentity.IMetricEntity
Measuring values are taken in a list of measures, a metric description, and at a concrete
measuring point.
TODO Add measuring point here.
-
Constructor Summary
ConstructorDescriptionMeasuringValue
(org.palladiosimulator.metricspec.MetricDescription metricDescription) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionjavax.measure.Measure<?,
?>[] asArray()
Returns the list of measure objects via an array.getMeasuringValueForMetric
(org.palladiosimulator.metricspec.MetricDescription metricDesciption) Returns this measuring value in case it conforms to the given metric description.org.palladiosimulator.metricspec.MetricDescription
boolean
isCompatibleWith
(org.palladiosimulator.metricspec.MetricDescription other) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.palladiosimulator.measurementframework.measureprovider.IMeasureProvider
asList, getMeasureForMetric
-
Constructor Details
-
MeasuringValue
public MeasuringValue(org.palladiosimulator.metricspec.MetricDescription metricDescription) Default constructor.- Parameters:
metricDescription
- Delegator object for implementing IMetricEntity.
-
-
Method Details
-
getMetricDesciption
public org.palladiosimulator.metricspec.MetricDescription getMetricDesciption()- Specified by:
getMetricDesciption
in interfaceorg.palladiosimulator.metricspec.metricentity.IMetricEntity
-
isCompatibleWith
public boolean isCompatibleWith(org.palladiosimulator.metricspec.MetricDescription other) - Specified by:
isCompatibleWith
in interfaceorg.palladiosimulator.metricspec.metricentity.IMetricEntity
-
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.
-
getMeasuringValueForMetric
public MeasuringValue getMeasuringValueForMetric(org.palladiosimulator.metricspec.MetricDescription metricDesciption) Returns this measuring value in case it conforms to the given metric description.- Parameters:
metricDesciption
- the given metric description.- Returns:
- this measuring value if it conforms to the given metric description,
null
otherwise.
-