Interface CalculatorInstantiator
-
- All Known Implementing Classes:
ExtensibleCalculatorInstantiatorImpl
public interface CalculatorInstantiator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AbstractDistributionPowerModelCalculator
instantiatePowerProvidingEntityCalculator(PowerProvidingEntity ppe)
Creates aAbstractDistributionPowerModelCalculator
for aPowerProvidingEntity
.IResourcePowerModelCalculator
instantiateResourceCalculator(PowerConsumingResourceSet resource)
Creates aAbstractResourcePowerModelCalculator
for aPowerConsumingResource
.IResourcePowerModelCalculator
instantiateStatefulResourcePowerModelCalculator(StatefulPowerConsumingResourceSet resource)
Instantiate the resource power model calculator of a stateful resource.
-
-
-
Method Detail
-
instantiateResourceCalculator
IResourcePowerModelCalculator instantiateResourceCalculator(PowerConsumingResourceSet resource)
Creates aAbstractResourcePowerModelCalculator
for aPowerConsumingResource
. The calculator type is selected based on thePowerConsumingResource#getResourcePowerAssemblyContext()
of thePowerConsumingResource
.- Parameters:
resource
- The resource for which the calculator is created.- Returns:
- The created calculator.
-
instantiatePowerProvidingEntityCalculator
AbstractDistributionPowerModelCalculator instantiatePowerProvidingEntityCalculator(PowerProvidingEntity ppe)
Creates aAbstractDistributionPowerModelCalculator
for aPowerProvidingEntity
. The calculator type is selected based on thePowerProvidingEntity.getDistributionPowerAssemblyContext()
.- Parameters:
ppe
- The entity for which the calculator is created.- Returns:
- The created distribution power model calculator.
-
instantiateStatefulResourcePowerModelCalculator
IResourcePowerModelCalculator instantiateStatefulResourcePowerModelCalculator(StatefulPowerConsumingResourceSet resource)
Instantiate the resource power model calculator of a stateful resource.- Parameters:
resource
- the resource for which the power model is generated.- Returns:
- the abstract resource power model calculator
-
-