Class AbstractCalculatorFactory
- java.lang.Object
-
- de.fzi.power.interpreter.calculators.AbstractCalculatorFactory
-
- All Implemented Interfaces:
CalculatorFactory
- Direct Known Subclasses:
EssentialCalculatorsFactory
public abstract class AbstractCalculatorFactory extends Object implements CalculatorFactory
-
-
Constructor Summary
Constructors Constructor Description AbstractCalculatorFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract int
getPriority()
Gets the priority.protected Set<String>
getSupportedDistributionPowerModelIds()
protected Set<String>
getSupportedResourcePowerModelIds()
AbstractDistributionPowerModelCalculator
instantiateDistributionPowerModelCalculator(DistributionPowerBinding binding)
Instantiate distribution power model calculator.IResourcePowerModelCalculator
instantiateResourcePowerModelCalculator(ResourcePowerBinding binding)
Instantiate resource power model calculator.boolean
isCompatibleWith(PowerModelSpecification specification)
Checks if is compatible with.
-
-
-
Method Detail
-
isCompatibleWith
public boolean isCompatibleWith(PowerModelSpecification specification)
Description copied from interface:CalculatorFactory
Checks if is compatible with.- Specified by:
isCompatibleWith
in interfaceCalculatorFactory
- Parameters:
specification
- the specification- Returns:
- true, if is compatible with
-
getPriority
public abstract int getPriority()
Description copied from interface:CalculatorFactory
Gets the priority.- Specified by:
getPriority
in interfaceCalculatorFactory
- Returns:
- the priority
-
instantiateDistributionPowerModelCalculator
public AbstractDistributionPowerModelCalculator instantiateDistributionPowerModelCalculator(DistributionPowerBinding binding)
Description copied from interface:CalculatorFactory
Instantiate distribution power model calculator.- Specified by:
instantiateDistributionPowerModelCalculator
in interfaceCalculatorFactory
- Returns:
- the abstract distribution power model calculator
-
instantiateResourcePowerModelCalculator
public IResourcePowerModelCalculator instantiateResourcePowerModelCalculator(ResourcePowerBinding binding)
Description copied from interface:CalculatorFactory
Instantiate resource power model calculator.- Specified by:
instantiateResourcePowerModelCalculator
in interfaceCalculatorFactory
- Returns:
- the abstract resource power model calculator
-
-