Example #1
0
        public CSnziNode Arrive()
        {
            while (true)
            {
                if (root.State != CSnziState.Open)
                {
                    return(null);
                }

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