Ejemplo 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);
        }
Ejemplo 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));
        }
Ejemplo n.º 3
0
 public override bool Enqueue(EarleySet set)
 {
     return(set.Add(this));
 }
Ejemplo n.º 4
0
 public abstract bool Enqueue(EarleySet set);