public final class TupleMeasurement extends MeasuringValue
MetricSetDescription
.Constructor and Description |
---|
TupleMeasurement(List<MeasuringValue> subsumedMeasurements,
org.palladiosimulator.metricspec.MetricSetDescription metricSetDescription)
Default constructor.
|
TupleMeasurement(org.palladiosimulator.metricspec.MetricSetDescription metricDescription,
List<javax.measure.Measure<?,?>> measures)
Convenience constructor based on subsumed measures.
|
TupleMeasurement(org.palladiosimulator.metricspec.MetricSetDescription metricDescription,
javax.measure.Measure<?,?>... measures)
Convenience constructor based on subsumed measures.
|
Modifier and Type | Method and Description |
---|---|
List<javax.measure.Measure<?,?>> |
asList()
Returns the list of measure objects via a Java utils list.
|
<V,Q extends javax.measure.quantity.Quantity> |
getMeasureForMetric(org.palladiosimulator.metricspec.MetricDescription wantedMetric)
Returns a measure object by looking for a given metric conforming to that measure object.
|
MeasuringValue |
getMeasuringValueForMetric(org.palladiosimulator.metricspec.MetricDescription metricDesciption)
Returns this measuring value in case it conforms to the given metric description.
|
List<MeasuringValue> |
getSubsumedMeasurements()
Returns the list of subsumed measurements.
|
String |
toString() |
asArray, getMetricDesciption, isCompatibleWith
public TupleMeasurement(List<MeasuringValue> subsumedMeasurements, org.palladiosimulator.metricspec.MetricSetDescription metricSetDescription)
subsumedMeasurements
- List of subsumed measurements, needed to construct a measure provider as needed by
the super class.metricSetDescription
- Metric set description of this measurement.IllegalArgumentException
- If number of measures does not equal number of subsumed metrics.public TupleMeasurement(org.palladiosimulator.metricspec.MetricSetDescription metricDescription, javax.measure.Measure<?,?>... measures)
metricDescription
- Metric set description of this measurement.measures
- Subsumed measures.public TupleMeasurement(org.palladiosimulator.metricspec.MetricSetDescription metricDescription, List<javax.measure.Measure<?,?>> measures)
metricDescription
- Metric set description of this measurement.measures
- Subsumed measures.public List<javax.measure.Measure<?,?>> asList()
public <V,Q extends javax.measure.quantity.Quantity> javax.measure.Measure<V,Q> getMeasureForMetric(org.palladiosimulator.metricspec.MetricDescription wantedMetric)
V
- Value type of the measure, e.g., Double.Q
- Quantity of the measure, e.g., 2.0 seconds.wantedMetric
- The metric to look for.public List<MeasuringValue> getSubsumedMeasurements()
public MeasuringValue getMeasuringValueForMetric(org.palladiosimulator.metricspec.MetricDescription metricDesciption)
getMeasuringValueForMetric
in class MeasuringValue
metricDesciption
- the given metric description.null
otherwise.