Interface ICalculatorRegistryAccess

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      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.
      Collection<Calculator> getCalculatorsForMeasuringPoint​(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint)
      Convenience method to get all calculators associated with the given measuring point.
      Collection<Calculator> getRegisteredCalculators()
      Gets the currently registered calculators.
    • Method Detail

      • getRegisteredCalculators

        Collection<Calculator> getRegisteredCalculators()
        Gets the currently registered calculators.
        Returns:
        An unmodifiable collection containing the currently registered calculators.
      • 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:
        getCalculatorsForMeasuringPoint(MeasuringPoint)