Class AbstractMeasureProvider

    • Constructor Detail

      • AbstractMeasureProvider

        protected AbstractMeasureProvider()
        Default Constructor.
    • Method Detail

      • getMeasureForMetric

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

        public abstract MeasuringValue getMeasurementForMetric​(org.palladiosimulator.metricspec.MetricDescription metricDesciption)
      • asList

        public abstract List<javax.measure.Measure<?,​?>> asList()
        Returns the list of measure objects via a Java utils list.
        Specified by:
        asList in interface IMeasureProvider
        Returns:
        the list of measure objects.
      • asArray

        public javax.measure.Measure<?,​?>[] asArray()
        Returns the list of measure objects via an array.
        Specified by:
        asArray in interface IMeasureProvider
        Returns:
        the array of measure objects.