Interface ICalculatorRegistryAccess

All Known Subinterfaces:
IObservableCalculatorRegistry
All Known Implementing Classes:
RegisterCalculatorFactoryDecorator

public interface ICalculatorRegistryAccess
  • Method Summary

    Modifier and Type
    Method
    Description
    getCalculatorByMeasuringPointAndMetricDescription(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint mp, org.palladiosimulator.metricspec.MetricDescription metric)
    Convenience method to get the calculator that is associated with the given measuring point and metric.

    Important note: If a base metric such as 'Response Time' is passed here, and an 'Response Time Tuple' calculator is available at the given measuring point it is NOT found by the current implementation of this method, since these are different metric (base metric vs.
    getCalculatorsForMeasuringPoint(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint)
    Convenience method to get all calculators associated with the given measuring point.
    Gets the currently registered calculators.
  • Method Details

    • getRegisteredCalculators

      Collection<Calculator> getRegisteredCalculators()
      Gets the currently registered calculators.
      Returns:
      An unmodifiable collection containing the currently registered calculators.
    • getCalculatorsForMeasuringPoint

      Collection<Calculator> getCalculatorsForMeasuringPoint(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint)
      Convenience method to get all calculators associated with the given measuring point.
      Parameters:
      measuringPoint - A MeasuringPoint instance which is associated with a calculator.
      Returns:
      An UNMODIFIABLE @Collection of Calculators which are associated with the given measuring point, might be empty but never null.
      See Also:
    • getCalculatorByMeasuringPointAndMetricDescription

      Calculator getCalculatorByMeasuringPointAndMetricDescription(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint mp, org.palladiosimulator.metricspec.MetricDescription metric)
      Convenience method to get the calculator that is associated with the given measuring point and metric.

      Important note: If a base metric such as 'Response Time' is passed here, and an 'Response Time Tuple' calculator is available at the given measuring point it is NOT found by the current implementation of this method, since these are different metric (base metric vs. metric set)!.
      In such a case, better use getCalculatorsForMeasuringPoint(MeasuringPoint) and filter the resulting collection manually for the desired base metric.
      Parameters:
      mp - A MeasuringPoint instance which is associated with a calculator.
      metric - A MetricDescription denoting the metric the calculator is accepting.
      Returns:
      A Calculator instance associated with the given measuring point and metric, or null if no matching Calculator is found.
      See Also: