Class BasicMeasurement<VALUE_TYPE,​QUANTITY extends javax.measure.quantity.Quantity>

  • Type Parameters:
    VALUE_TYPE - denotes the class of the taken sample (Integer, Long, ...)
    QUANTITY - denotes the measured Quantity
    All Implemented Interfaces:
    IMeasureProvider, org.palladiosimulator.metricspec.metricentity.IMetricEntity

    public final class BasicMeasurement<VALUE_TYPE,​QUANTITY extends javax.measure.quantity.Quantity>
    extends MeasuringValue
    Represents a basic measurement, i.e., a measurement for a {@see BaseMetricDescription}.
    • Constructor Detail

      • BasicMeasurement

        public BasicMeasurement​(javax.measure.Measure<VALUE_TYPE,​QUANTITY> measure,
                                org.palladiosimulator.metricspec.BaseMetricDescription metricDescription)
        Default Constructor.
        Parameters:
        measure - The measure to be represented.
        metricDescription - The base metric to be represented.
    • Method Detail

      • getMeasure

        public final javax.measure.Measure<VALUE_TYPE,​QUANTITY> getMeasure()
        Returns the encapsulated measured value in conjunction with its measured Quantity.
        Returns:
        the measured value and its quantity
        See Also:
        Measure
      • asList

        public List<javax.measure.Measure<?,​?>> asList()
        Description copied from interface: IMeasureProvider
        Returns the list of measure objects via a Java utils list.
        Returns:
        the list of measure objects.
      • getMeasureForMetric

        public <S,​T extends javax.measure.quantity.Quantity> javax.measure.Measure<S,​T> getMeasureForMetric​(org.palladiosimulator.metricspec.MetricDescription wantedMetric)
        Returns a measure object by looking for a given metric conforming to that measure object.
        Type Parameters:
        S - Value type of the measure, e.g., Double.
        T - 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.