Interface ICause

    • Method Detail

      • explain

        default void explain​(int pivot,
                             ExplanationForSignedClause explanation)
        Clausal explanation for this cause.

        This method must filled explanations with inferred literals. These literals are inferred from the analysis of (a subset of) conflicting nodes stored in front, the implication graph ig and the current node in conflict, not yet contained in front.

        Optionally, this method can update front by looking for a predecessor of any node that seems more relevant than the declared one.

        Parameters:
        pivot - the pivot node out of front
        explanation - explanation to compute
      • forEachIntVar

        default void forEachIntVar​(Consumer<IntVar> action)
        Apply an action on each variable declared on the scope of this cause, if any.
        Parameters:
        action - action to perform on each variable declared in this cause.