Class ContextDecision

  • All Implemented Interfaces:
    Explanation

    public class ContextDecision
    extends java.lang.Object
    implements Explanation
    ContextDecision provides the decision id and the evaluation up to the decision point.
    • Constructor Detail

      • ContextDecision

        public ContextDecision​(Explanation.Code id,
                               boolean granted,
                               java.util.List<ContextEvaluation> evaluations)
        Construct a decision.
        Parameters:
        id - The decision code id.
        granted - Is the decision granted or not.
        evaluations - A list of evaluations that includes the final decision.
      • ContextDecision

        public ContextDecision​(Explanation.Code id,
                               boolean granted)
    • Method Detail

      • granted

        public boolean granted()
      • describe

        public void describe​(java.io.PrintStream out)
        Specified by:
        describe in interface Explanation
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object