VALUE_TYPE
- denotes the class of the taken sample (Integer, Long, ...)QUANTITY
- denotes the measured Quantity
public final class BasicMeasurement<VALUE_TYPE,QUANTITY extends javax.measure.quantity.Quantity> extends MeasuringValue
BaseMetricDescription
.Constructor and Description |
---|
BasicMeasurement(javax.measure.Measure<VALUE_TYPE,QUANTITY> measure,
org.palladiosimulator.metricspec.BaseMetricDescription metricDescription)
Default Constructor.
|
Modifier and Type | Method and Description |
---|---|
List<javax.measure.Measure<?,?>> |
asList()
Returns the list of measure objects via a Java utils list.
|
javax.measure.Measure<VALUE_TYPE,QUANTITY> |
getMeasure()
Returns the encapsulated measured value in conjunction with its measured
Quantity . |
<S,T 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.
|
asArray, getMeasuringValueForMetric, getMetricDesciption, isCompatibleWith
public BasicMeasurement(javax.measure.Measure<VALUE_TYPE,QUANTITY> measure, org.palladiosimulator.metricspec.BaseMetricDescription metricDescription)
measure
- The measure to be represented.metricDescription
- The base metric to be represented.public final javax.measure.Measure<VALUE_TYPE,QUANTITY> getMeasure()
Quantity
.Measure
public List<javax.measure.Measure<?,?>> asList()
IMeasureProvider
public <S,T extends javax.measure.quantity.Quantity> javax.measure.Measure<S,T> getMeasureForMetric(org.palladiosimulator.metricspec.MetricDescription wantedMetric)
S
- Value type of the measure, e.g., Double.T
- Quantity of the measure, e.g., 2.0 seconds.wantedMetric
- The metric to look for.