Package io.openems.edge.ess.api
Class PowerConstraint
- java.lang.Object
-
- io.openems.edge.ess.api.PowerConstraint
-
- All Implemented Interfaces:
java.util.function.Consumer<Channel<java.lang.Integer>>
public class PowerConstraint extends java.lang.Object implements java.util.function.Consumer<Channel<java.lang.Integer>>
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.
-
-
Constructor Summary
Constructors Constructor Description PowerConstraint(java.lang.String channelId, Phase phase, Pwr pwr, Relationship relationship)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(Channel<java.lang.Integer> channel)
-
-
-
Constructor Detail
-
PowerConstraint
public PowerConstraint(java.lang.String channelId, Phase phase, Pwr pwr, Relationship relationship)
-
-