Class DefaultCalculatorFactory
- java.lang.Object
-
- org.palladiosimulator.probeframework.calculator.DefaultCalculatorFactory
-
- All Implemented Interfaces:
ICalculatorFactory
@Deprecated public class DefaultCalculatorFactory extends Object implements ICalculatorFactory
Deprecated.Default implementation of ICalculatorFactory. Directly creates calculators, with minimal overhead for other concerns. Therefore, the factory methods only check for valid probe inputs (checks for non-null and correct number of probes).- See Also:
ICalculatorFactory
-
-
Constructor Summary
Constructors Constructor Description DefaultCalculatorFactory()
Deprecated.Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Calculator
buildAggregatedCostOverTimeCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, Probe probe)
Deprecated.Calculator
buildCostOverTimeCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, Probe probe)
Deprecated.Creates a cost over time calculator object based on the given measuring point and the given probe.Calculator
buildDemandBasedWaitingTimeCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, List<Probe> probes)
Deprecated.Creates a demand-based waiting time calculator object based on the given name and the given probes.Calculator
buildExecutionResultCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, Probe probe)
Deprecated.Creates an execution result calculator object based on the given name and the given probe.Calculator
buildHoldingTimeCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, List<Probe> probes)
Deprecated.Creates a holding time calculator object based on the given name and the given probes.Calculator
buildNumberOfResourceContainersCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, Probe probe)
Deprecated.Creates a number of resource containers calculator object.Calculator
buildOptimisationTimeCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, Probe probe)
Deprecated.Creates an optimisation algorithm execution time calculator based on the given measuring point and given probe.Calculator
buildOverallStateOfActiveResourceCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, Probe probe)
Deprecated.Creates an overall utilization calculator object for an active resource based on the given name and the given probe.Calculator
buildOverallStateOfPassiveResourceCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, Probe probe)
Deprecated.Creates an overall utilization calculator object for a passive resource based on the given name and the given probe.Calculator
buildReconfigurationTimeCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, Probe probe)
Deprecated.Creates a reconfiguration time calculator object based on the given measuring point and the given probe.Calculator
buildResourceDemandCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, Probe probe)
Deprecated.Creates a demand calculator object based on the given name and the given probe.Calculator
buildResponseTimeCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, List<Probe> probes)
Deprecated.Creates a response time calculator object based on the given name and the given probes.Calculator
buildStateOfActiveResourceCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, Probe probe)
Deprecated.Creates a state calculator object for an active resource based on the given name and the given probe.Calculator
buildStateOfPassiveResourceCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, Probe probe)
Deprecated.Creates a state calculator object for a passive resource based on the given name and the given probe.Calculator
buildWaitingTimeCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, List<Probe> probes)
Deprecated.Creates a waiting time calculator object based on the given name and the given probes.
-
-
-
Method Detail
-
buildResponseTimeCalculator
public Calculator buildResponseTimeCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, List<Probe> probes)
Deprecated.Creates a response time calculator object based on the given name and the given probes.- Specified by:
buildResponseTimeCalculator
in 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
public Calculator buildDemandBasedWaitingTimeCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, List<Probe> probes)
Deprecated.Creates a demand-based waiting time calculator object based on the given name and the given probes.- Specified by:
buildDemandBasedWaitingTimeCalculator
in 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
public Calculator buildWaitingTimeCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, List<Probe> probes)
Deprecated.Creates a waiting time calculator object based on the given name and the given probes.- Specified by:
buildWaitingTimeCalculator
in 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
public Calculator buildHoldingTimeCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, List<Probe> probes)
Deprecated.Creates a holding time calculator object based on the given name and the given probes.- Specified by:
buildHoldingTimeCalculator
in 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
public Calculator buildStateOfActiveResourceCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, Probe probe)
Deprecated.Creates a state calculator object for an active resource based on the given name and the given probe.- Specified by:
buildStateOfActiveResourceCalculator
in 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
public Calculator buildOverallStateOfActiveResourceCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, Probe probe)
Deprecated.Creates an overall utilization calculator object for an active resource based on the given name and the given probe.- Specified by:
buildOverallStateOfActiveResourceCalculator
in 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
public Calculator buildStateOfPassiveResourceCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, Probe probe)
Deprecated.Creates a state calculator object for a passive resource based on the given name and the given probe.- Specified by:
buildStateOfPassiveResourceCalculator
in 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
public Calculator buildOverallStateOfPassiveResourceCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, Probe probe)
Deprecated.Creates an overall utilization calculator object for a passive resource based on the given name and the given probe.- Specified by:
buildOverallStateOfPassiveResourceCalculator
in 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
public Calculator buildResourceDemandCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, Probe probe)
Deprecated.Creates a demand calculator object based on the given name and the given probe.- Specified by:
buildResourceDemandCalculator
in 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
public Calculator buildExecutionResultCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, Probe probe)
Deprecated.Creates an execution result calculator object based on the given name and the given probe.- Specified by:
buildExecutionResultCalculator
in 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
public Calculator buildNumberOfResourceContainersCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, Probe probe)
Deprecated.Creates a number of resource containers calculator object.- Specified by:
buildNumberOfResourceContainersCalculator
in 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
public Calculator buildReconfigurationTimeCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, Probe probe)
Deprecated.Creates a reconfiguration time calculator object based on the given measuring point and the given probe.- Specified by:
buildReconfigurationTimeCalculator
in interfaceICalculatorFactory
- Parameters:
measuringPoint
- TheMeasuringPoint
where this calculator is used.probe
- TheProbe
that provides the measurements.- Returns:
- A new reconfiguration time calculator object.
-
buildCostOverTimeCalculator
public Calculator buildCostOverTimeCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, Probe probe)
Deprecated.Creates a cost over time calculator object based on the given measuring point and the given probe.- Specified by:
buildCostOverTimeCalculator
in interfaceICalculatorFactory
- Parameters:
measuringPoint
- TheMeasuringPoint
where this calculator is used.probe
- TheProbe
that provides the measurements. Should be an EventProbeList- Returns:
- A new cost over time calculator object.
-
buildAggregatedCostOverTimeCalculator
public Calculator buildAggregatedCostOverTimeCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, Probe probe)
Deprecated.- Specified by:
buildAggregatedCostOverTimeCalculator
in interfaceICalculatorFactory
-
buildOptimisationTimeCalculator
public Calculator buildOptimisationTimeCalculator(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint, Probe probe)
Deprecated.Creates an optimisation algorithm execution time calculator based on the given measuring point and given probe.- Specified by:
buildOptimisationTimeCalculator
in interfaceICalculatorFactory
- Returns:
-
-