public DecisionTree(Decision decision) { root = new DecisionTreeNode(decision); }
/// <summary> /// Applies an external decision to the tree. This method explores /// the tree in depth until a node without a decision taken is reached, /// then applies the decision removing all but the children indexed by /// the given decision. /// </summary> /// <param name="decision">The external decision to be applied.</param> public void ExternalPermaDecisionMade(Decision decision) { root.ExternalPermaDecisionMade(decision); }
/// <summary> /// Returns <code>true</code> if the given decision is taken /// into account building the decision tree, <code>false</code> /// otherwise. /// </summary> /// <param name="decision">The decision to take next.</param> /// <returns>Boolean value.</returns> public bool NextDecisionPlanned(Decision decision) { return(root.NextDecisionPlanned(decision)); }