Esempio n. 1
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="parentNode">is the parent evaluator to call to indicate truth value</param>
 /// <param name="evalFollowedByNode">is the factory node associated to the state</param>
 public EvalFollowedByStateNode(
     Evaluator parentNode,
     EvalFollowedByNode evalFollowedByNode)
     : base(parentNode)
 {
     this.evalFollowedByNode = evalFollowedByNode;
     this.nodes = new Dictionary<EvalStateNode, int>();
 }
Esempio n. 2
0
 /// <summary>
 ///     Constructor.
 /// </summary>
 /// <param name="parentNode">is the parent evaluator to call to indicate truth value</param>
 /// <param name="evalFollowedByNode">is the factory node associated to the state</param>
 public EvalFollowedByWithMaxStateNodeManaged(
     Evaluator parentNode,
     EvalFollowedByNode evalFollowedByNode)
     : base(parentNode)
 {
     this.evalFollowedByNode = evalFollowedByNode;
     nodes = new Dictionary<EvalStateNode, int>();
     if (evalFollowedByNode.IsTrackWithMax) {
         countActivePerChild = new int[evalFollowedByNode.ChildNodes.Length - 1];
     }
     else {
         countActivePerChild = null;
     }
 }