Class IExplanation

  • Direct Known Subclasses:
    ExplanationForSignedClause

    public abstract class IExplanation
    extends Object
    An abstract class that defines required methods for an explanation. An explanation tells about the reason of a failure. It gives information relatives to:
    • decision to backtrack to
    • additional constraint to add to the model

    Project: choco-solver.

    Since:
    27/01/2017.
    Author:
    Charles Prud'homme
    • Constructor Detail

      • IExplanation

        public IExplanation()
    • Method Detail

      • extractConstraint

        public abstract void extractConstraint​(Model mModel,
                                               ClauseStore ngstore)
        Extract and post the nogood related to this explanation
        Parameters:
        mModel - the model to post the nogood in
      • recycle

        public abstract void recycle()
        Recycle this explanation when it is not used anymore.