Esempio n. 1
0
        public ICSnziNode Arrive()
        {
            while (true)
            {
                if (root.State != CSnziState.Open)
                {
                    return(null);
                }

                ICSnziNode leaf = leafs[GetLeafIndex()];
                if (leaf.Arrive())
                {
                    return(leaf);
                }
                else
                {
                    return(null);
                }
            }
        }
Esempio n. 2
0
		public CSnziLeafNode (ICSnziNode parent)
		{
			this.parent = parent;
		}
Esempio n. 3
0
		public bool Depart (ICSnziNode node)
		{
			return node.Depart ();
		}
Esempio n. 4
0
 public CSnziLeafNode(ICSnziNode parent)
 {
     this.parent = parent;
 }
Esempio n. 5
0
 public bool Depart(ICSnziNode node)
 {
     return(node.Depart());
 }