Class AbstractDistributionPowerModelCalculator
- java.lang.Object
-
- de.fzi.power.interpreter.calculators.AbstractDistributionPowerModelCalculator
-
- Direct Known Subclasses:
ExpressionOasisDistributionPowerModelCalculator
,LinearPassthroughCalculator
public abstract class AbstractDistributionPowerModelCalculator extends Object
Subsumes a calculator responsible for evaluating the power consumption of aDistributionPowerModelSpecification
.
-
-
Constructor Summary
Constructors Constructor Description AbstractDistributionPowerModelCalculator(DistributionPowerBinding binding)
Creates a calculator for a distribution power model that is associated with aPowerProvidingEntity
.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract org.jscience.physics.amount.Amount<javax.measure.quantity.Power>
calculate(Map<PowerConsumingEntity,org.jscience.physics.amount.Amount<javax.measure.quantity.Power>> outletConsumptions)
Calculates the power consumption based on the power consumption measured or evaluated for a set of outlets of thePowerProvidingEntity
.
-
-
-
Constructor Detail
-
AbstractDistributionPowerModelCalculator
public AbstractDistributionPowerModelCalculator(DistributionPowerBinding binding)
Creates a calculator for a distribution power model that is associated with aPowerProvidingEntity
.- Parameters:
powerProvidingEntity
- The entity for which the distribution power model is created.
-
-
Method Detail
-
calculate
public abstract org.jscience.physics.amount.Amount<javax.measure.quantity.Power> calculate(Map<PowerConsumingEntity,org.jscience.physics.amount.Amount<javax.measure.quantity.Power>> outletConsumptions)
Calculates the power consumption based on the power consumption measured or evaluated for a set of outlets of thePowerProvidingEntity
.- Parameters:
outletConsumptions
- The consumptions measured/evaluated at the outlets of a set of connected entities.- Returns:
- The consumption predicted by the calculator.
-
-