// Add an entry in the dictionary linking a possible output // of Selector to a node public void AddLink(object value, IDTNode next) { links.Add(value, next); }
// Create a decision tree with starting from a root node public DecisionTree(IDTNode start) { root = start; }
public DTBinaryDecision(Func <bool> condition, IDTNode trueNode, IDTNode falseNode) { this.condition = condition; this.falseNode = falseNode; this.trueNode = trueNode; }