Class Constraint

    • Constructor Detail

      • Constraint

        protected Constraint​(long cPtr,
                             boolean cMemoryOwn)
    • Method Detail

      • getCPtr

        protected static long getCPtr​(Constraint obj)
      • swigRelease

        protected static long swigRelease​(Constraint obj)
      • post

        public void post()
        This method is called when the constraint is processed by the
        solver. Its main usage is to attach demons to variables.
      • initialPropagate

        public void initialPropagate()
        This method performs the initial propagation of the
        constraint. It is called just after the post.
      • postAndPropagate

        public void postAndPropagate()
        Calls Post and then Propagate to initialize the constraints. This
        is usually done in the root node.
      • accept

        public void accept​(ModelVisitor visitor)
        Accepts the given visitor.
      • isCastConstraint

        public boolean isCastConstraint()
        Is the constraint created by a cast from expression to integer variable?
      • var

        public IntVar var()
        Creates a Boolean variable representing the status of the constraint
        (false = constraint is violated, true = constraint is satisfied). It
        returns nullptr if the constraint does not support this API.