Class DecisionNode
- Namespace
- LibGameAI.DecisionTrees
- Assembly
- DecisionTrees.dll
A decision node in a decision tree.
public class DecisionNode : IDecisionTreeNode
- Inheritance
-
DecisionNode
- Implements
- Inherited Members
Constructors
DecisionNode(Func<bool>, IDecisionTreeNode, IDecisionTreeNode)
Creates a new decision node.
public DecisionNode(Func<bool> test, IDecisionTreeNode trueNode, IDecisionTreeNode falseNode)
Parameters
test
Func<bool>Function which will make the true or false decision.
trueNode
IDecisionTreeNodeDT node to return when the decision is true.
falseNode
IDecisionTreeNodeDT node to return when the decision is false.
Methods
MakeDecision()
Make a decision.
public IDecisionTreeNode MakeDecision()
Returns
- IDecisionTreeNode
A DT node, which will depend wether the decision was true or false.