Interface ICalculatorFactoryLegacyAdapter
- All Superinterfaces:
ICalculatorFactory,IGenericCalculatorFactory
public interface ICalculatorFactoryLegacyAdapter
extends ICalculatorFactory, IGenericCalculatorFactory
This interface provides default implementations to adapt the legacy
ICalculatorFactory to the new interface IGenericCalculatorFactory.
When developing new code please use
IGenericCalculatorFactory
directly.-
Method Summary
Modifier and TypeMethodDescriptiondefault CalculatorbuildAggregatedCostOverTimeCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, Probe probe) default CalculatorbuildCostOverTimeCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, Probe probe) Creates a cost over time calculator object based on the given measuring point and the given probe.default CalculatorbuildDemandBasedWaitingTimeCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, List<Probe> probes) Creates a demand-based waiting time calculator object based on the given name and the given probes.default CalculatorbuildExecutionResultCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, Probe probe) Creates an execution result calculator object based on the given name and the given probe.default CalculatorbuildHoldingTimeCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, List<Probe> probes) Creates a holding time calculator object based on the given name and the given probes.default CalculatorbuildNumberOfResourceContainersCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, Probe probe) Creates a number of resource containers calculator object.default CalculatorbuildOptimisationTimeCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, Probe probe) Creates an optimisation algorithm execution time calculator based on the given measuring point and given probe.default CalculatorbuildOverallStateOfActiveResourceCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, Probe probe) Creates an overall utilization calculator object for an active resource based on the given name and the given probe.default CalculatorbuildOverallStateOfPassiveResourceCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, Probe probe) Creates an overall utilization calculator object for a passive resource based on the given name and the given probe.default CalculatorbuildReconfigurationTimeCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, Probe probe) Creates a reconfiguration time calculator object based on the given measuring point and the given probe.default CalculatorbuildResourceDemandCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, Probe probe) Creates a demand calculator object based on the given name and the given probe.default CalculatorbuildResponseTimeCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, List<Probe> probes) Creates a response time calculator object based on the given name and the given probes.default CalculatorbuildStateOfActiveResourceCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, Probe probe) Creates a state calculator object for an active resource based on the given name and the given probe.default CalculatorbuildStateOfPassiveResourceCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, Probe probe) Creates a state calculator object for a passive resource based on the given name and the given probe.default CalculatorbuildWaitingTimeCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, List<Probe> probes) Creates a waiting time calculator object based on the given name and the given probes.This factory method allows to create an adapter which delegates the legacy factory methods to the extensible one.Methods inherited from interface org.palladiosimulator.probeframework.calculator.IGenericCalculatorFactory
buildCalculator
-
Method Details
-
createDelegatingAdapter
This factory method allows to create an adapter which delegates the legacy factory methods to the extensible one.- Parameters:
delegate- the factory which adheres to the new style.- Returns:
- the delegating adapter
-
buildResponseTimeCalculator
default Calculator buildResponseTimeCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, List<Probe> probes) Creates a response time calculator object based on the given name and the given probes.- Specified by:
buildResponseTimeCalculatorin interfaceICalculatorFactory- Parameters:
measuringPoint- The measuring point where this calculator is used, e.g., "Operation A".probes- List of two probes for starting point of the operation call and final point of the operation call.- Returns:
- A new response time calculator object.
-
buildDemandBasedWaitingTimeCalculator
default Calculator buildDemandBasedWaitingTimeCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, List<Probe> probes) Creates a demand-based waiting time calculator object based on the given name and the given probes.- Specified by:
buildDemandBasedWaitingTimeCalculatorin interfaceICalculatorFactory- Parameters:
measuringPoint- The measuring point where this calculator is used, e.g., "Passive Resource A".probes- List of three probes for (1) start request for processing, (2) end of processing event, and (3) the demanded time at the resource.- Returns:
- A new demand-based waiting time calculator object.
-
buildWaitingTimeCalculator
default Calculator buildWaitingTimeCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, List<Probe> probes) Creates a waiting time calculator object based on the given name and the given probes.- Specified by:
buildWaitingTimeCalculatorin interfaceICalculatorFactory- Parameters:
measuringPoint- The measuring point where this calculator is used, e.g., "Passive Resource A".probes- List of two probes for starting point of the waiting time and final point of waiting time.- Returns:
- A new waiting time calculator object.
-
buildHoldingTimeCalculator
default Calculator buildHoldingTimeCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, List<Probe> probes) Creates a holding time calculator object based on the given name and the given probes.- Specified by:
buildHoldingTimeCalculatorin interfaceICalculatorFactory- Parameters:
measuringPoint- The measuring point where this calculator is used, e.g., "Passive Resource A".probes- List of two probes for starting point of holding time and final point of holding time.- Returns:
- A new holding time time calculator object.
-
buildStateOfActiveResourceCalculator
default Calculator buildStateOfActiveResourceCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, Probe probe) Creates a state calculator object for an active resource based on the given name and the given probe.- Specified by:
buildStateOfActiveResourceCalculatorin interfaceICalculatorFactory- Parameters:
measuringPoint- The measuring point where this calculator is used, e.g., "CPU 1".probe- A single probe providing the resource state of interest.- Returns:
- A new state calculator object.
-
buildOverallStateOfActiveResourceCalculator
default Calculator buildOverallStateOfActiveResourceCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, Probe probe) Creates an overall utilization calculator object for an active resource based on the given name and the given probe.- Specified by:
buildOverallStateOfActiveResourceCalculatorin interfaceICalculatorFactory- Parameters:
measuringPoint- The measuring point where this calculator is used, e.g., "CPU 1".probe- A single probe providing the resource state of interest.- Returns:
- A new overall utilization calculator object.
-
buildStateOfPassiveResourceCalculator
default Calculator buildStateOfPassiveResourceCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, Probe probe) Creates a state calculator object for a passive resource based on the given name and the given probe.- Specified by:
buildStateOfPassiveResourceCalculatorin interfaceICalculatorFactory- Parameters:
measuringPoint- The measuring point where this calculator is used, e.g., "Connection Pool 1".probe- A single probe providing the resource state of interest.- Returns:
- A new state calculator object.
-
buildOverallStateOfPassiveResourceCalculator
default Calculator buildOverallStateOfPassiveResourceCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, Probe probe) Creates an overall utilization calculator object for a passive resource based on the given name and the given probe.- Specified by:
buildOverallStateOfPassiveResourceCalculatorin interfaceICalculatorFactory- Parameters:
measuringPoint- The measuring point where this calculator is used, e.g., "Connection Pool 1".probe- A single probe providing the resource state of interest.- Returns:
- A new overall utilization calculator object.
-
buildResourceDemandCalculator
default Calculator buildResourceDemandCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, Probe probe) Creates a demand calculator object based on the given name and the given probe.- Specified by:
buildResourceDemandCalculatorin interfaceICalculatorFactory- Parameters:
measuringPoint- The measuring point where this calculator is used, e.g., "CPU 1".probe- A single probe providing the resource demand.- Returns:
- A new demand calculator object.
-
buildExecutionResultCalculator
default Calculator buildExecutionResultCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, Probe probe) Creates an execution result calculator object based on the given name and the given probe.- Specified by:
buildExecutionResultCalculatorin interfaceICalculatorFactory- Parameters:
measuringPoint- The measuring point where this calculator is used, e.g., "Operation A".probe- A single probe providing the execution results.- Returns:
- A new execution result calculator object.
-
buildNumberOfResourceContainersCalculator
default Calculator buildNumberOfResourceContainersCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, Probe probe) Creates a number of resource containers calculator object.- Specified by:
buildNumberOfResourceContainersCalculatorin interfaceICalculatorFactory- Parameters:
measuringPoint- The measuring point where this calculator is used, e.g., "Resource Environment A".probe- A single probe for the total number of resource containers.- Returns:
- A new number if resource containers calculator object.
-
buildReconfigurationTimeCalculator
default Calculator buildReconfigurationTimeCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, Probe probe) Creates a reconfiguration time calculator object based on the given measuring point and the given probe.- Specified by:
buildReconfigurationTimeCalculatorin interfaceICalculatorFactory- Parameters:
measuringPoint- TheMeasuringPointwhere this calculator is used.probe- TheProbethat provides the measurements.- Returns:
- A new reconfiguration time calculator object.
-
buildCostOverTimeCalculator
default Calculator buildCostOverTimeCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, Probe probe) Creates a cost over time calculator object based on the given measuring point and the given probe.- Specified by:
buildCostOverTimeCalculatorin interfaceICalculatorFactory- Parameters:
measuringPoint- TheMeasuringPointwhere this calculator is used.probe- TheProbethat provides the measurements. Should be an EventProbeList- Returns:
- A new cost over time calculator object.
-
buildAggregatedCostOverTimeCalculator
default Calculator buildAggregatedCostOverTimeCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, Probe probe) - Specified by:
buildAggregatedCostOverTimeCalculatorin interfaceICalculatorFactory
-
buildOptimisationTimeCalculator
default Calculator buildOptimisationTimeCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, Probe probe) Creates an optimisation algorithm execution time calculator based on the given measuring point and given probe.- Specified by:
buildOptimisationTimeCalculatorin interfaceICalculatorFactory- Returns:
-