Class AbstractMeasureProvider

java.lang.Object
org.palladiosimulator.measurementframework.measureprovider.AbstractMeasureProvider
All Implemented Interfaces:
IMeasureProvider
Direct Known Subclasses:
MeasurementListMeasureProvider

public abstract class AbstractMeasureProvider extends Object implements IMeasureProvider
Abstract implementation of a measure provider.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Default Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    javax.measure.Measure<?,?>[]
    Returns the list of measure objects via an array.
    abstract List<javax.measure.Measure<?,?>>
    Returns the list of measure objects via a Java utils list.
    <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.
    getMeasurementForMetric(org.palladiosimulator.metricspec.MetricDescription metricDesciption)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AbstractMeasureProvider

      protected AbstractMeasureProvider()
      Default Constructor.
  • Method Details

    • 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.