コード例 #1
0
ファイル: DecisionTree.cs プロジェクト: FabioBis/SharpSearch
 public DecisionTree(Decision decision)
 {
     root = new DecisionTreeNode(decision);
 }
コード例 #2
0
ファイル: DecisionTree.cs プロジェクト: FabioBis/SharpSearch
 /// <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);
 }
コード例 #3
0
ファイル: DecisionTree.cs プロジェクト: FabioBis/SharpSearch
 /// <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));
 }