public void ExecuteTree() { if (State == State.Ended) return; CurrentExecutingProcess = this; this.ExecuteTreeBefore(); //Console.WriteLine("<Execute " + this + ">"); this.SwitchTo(); //Console.WriteLine("</Execute " + this + ">"); this.ExecuteTreeAfter(); }
public void ExecuteTree() { if (State == State.Ended) { return; } CurrentExecutingProcess = this; this.ExecuteTreeBefore(); //Console.WriteLine("<Execute " + this + ">"); this.SwitchTo(); //Console.WriteLine("</Execute " + this + ">"); this.ExecuteTreeAfter(); }
protected override void _Remove() { Parent = null; _AllProcesses.Remove(this); base._Remove(); }
public ProcessBase() : base() { _AllProcesses.AddLast(this); Childs = new LinkedList<ProcessBase>(); Parent = CurrentExecutingProcess; }
public ProcessBase() : base() { _AllProcesses.AddLast(this); Childs = new LinkedList <ProcessBase>(); Parent = CurrentExecutingProcess; }