Пример #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);
                }
            }
        }
Пример #2
0
		public CSnziLeafNode (ICSnziNode parent)
		{
			this.parent = parent;
		}
Пример #3
0
		public bool Depart (ICSnziNode node)
		{
			return node.Depart ();
		}
Пример #4
0
 public CSnziLeafNode(ICSnziNode parent)
 {
     this.parent = parent;
 }
Пример #5
0
 public bool Depart(ICSnziNode node)
 {
     return(node.Depart());
 }