Class PowerConstraint

java.lang.Object
io.openems.edge.ess.api.PowerConstraint
All Implemented Interfaces:
ThrowingBiConsumer<ManagedSymmetricEss,Integer,OpenemsError.OpenemsNamedException>

This lambda friendly functional class creates a Power Constraint when a new write-value is sent to the Channel (setNextWriteValue()). This new constraint is directly validated and only added if the Power problem is still solvable with the new constraint. Otherwise an error is logged.