Пример #1
0
 /// <summary>
 /// Gets the specific element cost.
 /// </summary>
 /// <param name="queue">The queue.</param>
 /// <param name="element">The element.</param>
 /// <returns>float - the cost</returns>
 private float getSpecificElementCost(Priority_Queue.SimplePriorityQueue <State <T> > queue,
                                      State <T> element)
 {
     foreach (State <T> elm in queue)
     {
         if (elm.Equals(element))
         {
             return((float)elm.Cost);
         }
     }
     return(0);
 }
Пример #2
0
 public SimpleQueue()
 {
     _raws = new Priority_Queue.SimplePriorityQueue <RawMsg>();
 }