Class 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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void accept​(Channel<java.lang.Integer> channel)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Consumer

        andThen
    • Constructor Detail

      • PowerConstraint

        public PowerConstraint​(java.lang.String channelId,
                               Phase phase,
                               Pwr pwr,
                               Relationship relationship)
    • Method Detail

      • accept

        public void accept​(Channel<java.lang.Integer> channel)
        Specified by:
        accept in interface java.util.function.Consumer<Channel<java.lang.Integer>>