Interface ICalculatorRegistryAccess
- All Known Subinterfaces:
IObservableCalculatorRegistry
- All Known Implementing Classes:
RegisterCalculatorFactoryDecorator
public interface ICalculatorRegistryAccess
-
Method Summary
Modifier and TypeMethodDescriptiongetCalculatorByMeasuringPointAndMetricDescription(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- AMeasuringPointinstance which is associated with a calculator.- Returns:
- An UNMODIFIABLE @
CollectionofCalculators which are associated with the given measuring point, might be empty but nevernull. - 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 usegetCalculatorsForMeasuringPoint(MeasuringPoint)and filter the resulting collection manually for the desired base metric.- Parameters:
mp- AMeasuringPointinstance which is associated with a calculator.metric- AMetricDescriptiondenoting the metric the calculator is accepting.- Returns:
- A
Calculatorinstance associated with the given measuring point and metric, ornullif no matchingCalculatoris found. - See Also:
-