Esempio n. 1
0
        private EarleySet GetEarleySet(int index)
        {
            EarleySet earleySet = null;

            if (_earleySets.Count <= index)
            {
                earleySet = new EarleySet(index);
                _earleySets.Add(earleySet);
            }
            else
            {
                earleySet = _earleySets[index];
            }

            return(earleySet);
        }
Esempio n. 2
0
        public bool Enqueue(int index, IState state)
        {
            IEarleySet earleySet = null;

            if (_earleySets.Count <= index)
            {
                earleySet = new EarleySet(index);
                _earleySets.Add(earleySet);
            }
            else
            {
                earleySet = _earleySets[index];
            }

            return(earleySet.Enqueue(state));
        }
Esempio n. 3
0
 public override bool Enqueue(EarleySet set)
 {
     return(set.Add(this));
 }
Esempio n. 4
0
 public abstract bool Enqueue(EarleySet set);