All Implemented Interfaces:
DataExceptionContributor, JsonSerializable, RecordSerializable, XmlSerializable, Serializable

public class DecisionTreeResult extends DecisionTreeObject
The result of evaluating a DecisionTree: the path of nodes entered and the combined outcome fields.
See Also:
  • Constructor Details

    • DecisionTreeResult

      public DecisionTreeResult()
  • Method Details

    • getPath

      public List<DecisionTreeNode> getPath()
      Returns the nodes entered because their conditions held, in order from the root; the root and default nodes are not included.
    • addToPath

      public DecisionTreeResult addToPath(DecisionTreeNode node)
      Appends a node to the path, throwing an exception if it is already in the path (a cycle).
    • getOutcome

      public Record getOutcome()
      Returns the fields set by the outcomes of the visited nodes; never null.
    • getOutcomeAsJson

      public String getOutcomeAsJson()