All Known Implementing Classes:
AbstractMeasureProvider, BasicMeasurement, MeasurementListMeasureProvider, MeasuringValue, TupleMeasurement

public interface IMeasureProvider
A measure provider offers access to an ordered list of measure objects as defined by the JScience Framework.
  • Method Summary

    Modifier and Type
    Method
    Description
    javax.measure.Measure<?,?>[]
    Returns the list of measure objects via an array.
    List<javax.measure.Measure<?,?>>
    Returns the list of measure objects via a Java utils list.
    <VALUE_TYPE, QUANTITY extends javax.measure.quantity.Quantity>
    javax.measure.Measure<VALUE_TYPE,QUANTITY>
    getMeasureForMetric(org.palladiosimulator.metricspec.MetricDescription wantedMetric)
    Returns a measure object by looking for a given metric conforming to that measure object.
  • Method Details

    • getMeasureForMetric

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

      List<javax.measure.Measure<?,?>> asList()
      Returns the list of measure objects via a Java utils list.
      Returns:
      the list of measure objects.
    • asArray

      javax.measure.Measure<?,?>[] asArray()
      Returns the list of measure objects via an array.
      Returns:
      the array of measure objects.