Class Decision

    • Constructor Detail

      • Decision

        public Decision()
    • Method Detail

      • single

        public static Decision single​(Decision.Type type,
                                      java.lang.String label,
                                      java.lang.String explanation,
                                      java.lang.Object... explanationParams)
        Creates a simple decision
        type - Decision.Type of the decision
        label - label for the Decider that produced this decision
        explanation - explanation of the decision
        explanationParams - additional parameters for the decision
        new Decision instance
      • readFrom

        public static Decision readFrom​(StreamInput in)
      • label

        public abstract java.lang.String label()
        Get the description label for this decision.
      • getExplanation

        public abstract java.lang.String getExplanation()
        Get the explanation for this decision.
      • getDecisions

        public abstract java.util.List<Decision> getDecisions()
        Return the list of all decisions that make up this decision