예제 #1
0
 public Node.State Update()
 {
     if (rootNode.state == Node.State.Running)
     {
         treeState = rootNode.Update();
     }
     return(treeState);
 }
예제 #2
0
 public Execution(Node actor, int term) : this()
 {
     this.first = actor;
     firstState = actor.CurrentState;
     firstTerm  = actor.CurrentTerm;
     stamp      = DateTime.Now;
     this.term  = term;
 }