Class LinearPassthroughCalculator
- java.lang.Object
-
- de.fzi.power.interpreter.calculators.AbstractDistributionPowerModelCalculator
-
- de.fzi.power.interpreter.calculators.essential.LinearPassthroughCalculator
-
public class LinearPassthroughCalculator extends AbstractDistributionPowerModelCalculator
A calculator that calculates the power consumption of aPowerProvidingEntityby summing up the power consumption of all nested elements.
-
-
Constructor Summary
Constructors Constructor Description LinearPassthroughCalculator(DistributionPowerBinding binding)Creates anAbstractDistributionPowerModelCalculatorthat calculates the power consumption of aPowerProvidingEntityby summing up the power consumption of itsPowerProvidingEntity.getNestedPowerConsumingEntities().
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
LinearPassthroughCalculator
public LinearPassthroughCalculator(DistributionPowerBinding binding)
Creates anAbstractDistributionPowerModelCalculatorthat calculates the power consumption of aPowerProvidingEntityby summing up the power consumption of itsPowerProvidingEntity.getNestedPowerConsumingEntities().- Parameters:
powerProvidingEntity- The entity for which the calculator is created.- Throws:
NullPointerException- In case the requiredFixedFactoris not set.
-
-
Method Detail
-
calculate
public org.jscience.physics.amount.Amount<javax.measure.quantity.Power> calculate(Map<PowerConsumingEntity,org.jscience.physics.amount.Amount<javax.measure.quantity.Power>> outletConsumptions)
Description copied from class:AbstractDistributionPowerModelCalculatorCalculates the power consumption based on the power consumption measured or evaluated for a set of outlets of thePowerProvidingEntity.- Specified by:
calculatein classAbstractDistributionPowerModelCalculator- Parameters:
outletConsumptions- The consumptions measured/evaluated at the outlets of a set of connected entities.- Returns:
- The consumption predicted by the calculator.
-
-