Package com.northconcepts.datapipeline.foundations.decisiontree
package com.northconcepts.datapipeline.foundations.decisiontree
Decision tree rule engine.
-
ClassDescriptionEvaluates a record by walking from the root node, at each node entering the first child whose condition holds (or else the default node), and combines the outcomes of every node visited.A node of a
DecisionTree: the condition for entering it, the outcomes it sets when visited, its child nodes and the default node entered when no child's condition holds.Base class for the decision tree classes: the tree, its nodes and outcomes, and its results.An outcome of aDecisionTreeNode: sets the result field named by its variable to the value of its expression.Evaluates aDecisionTreefor each record read from a nested reader and adds the outcome fields to the record.The result of evaluating aDecisionTree: the path of nodes entered and the combined outcome fields.Callback forDecisionTree.visit(DecisionTreeVisitor), called once for each node of the tree.Evaluates aDecisionTreefor each record and adds the outcome fields to it before writing it to a nested writer.