public class LinearPassthroughCalculator extends AbstractDistributionPowerModelCalculator
PowerProvidingEntity by summing
up the power consumption of all nested elements.| Constructor and Description |
|---|
LinearPassthroughCalculator(PowerProvidingEntity powerProvidingEntity)
Creates an
AbstractDistributionPowerModelCalculator that calculates the power
consumption of a PowerProvidingEntity by summing up the power consumption of its
PowerProvidingEntity.getNestedPowerConsumingEntities(). |
| Modifier and Type | Method and 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 the
PowerProvidingEntity. |
public LinearPassthroughCalculator(PowerProvidingEntity powerProvidingEntity)
AbstractDistributionPowerModelCalculator that calculates the power
consumption of a PowerProvidingEntity by summing up the power consumption of its
PowerProvidingEntity.getNestedPowerConsumingEntities().powerProvidingEntity - The entity for which the calculator is created.NullPointerException - In case the required FixedFactor is not set.public org.jscience.physics.amount.Amount<javax.measure.quantity.Power> calculate(Map<PowerConsumingEntity,org.jscience.physics.amount.Amount<javax.measure.quantity.Power>> outletConsumptions)
AbstractDistributionPowerModelCalculatorPowerProvidingEntity.calculate in class AbstractDistributionPowerModelCalculatoroutletConsumptions - The consumptions measured/evaluated at the outlets of a set of connected entities.