Ejemplo n.º 1
0
 /// <summary>
 /// Evaluates and executes the result
 /// </summary>
 public void Action()
 {
     if (_evaluation())
     {
         if (_affirmativeNode != null)
         {
             _affirmativeNode.Action();
         }
     }
     else if (_negativeNode != null)
     {
         _negativeNode.Action();
     }
 }
 /// <summary>
 /// Executes the Decision Tree
 /// </summary>
 public void Execute()
 {
     _startNode.Action();
 }