Esempio n. 1
0
 public bool Equals(BufferItem otherItem)     // Don't care about timer for comparison
 {
     if (this.GetInput() == otherItem.GetInput())
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Esempio n. 2
0
    public StatesEnum Dequeue()     // Dequeues the next BufferItem, and returns the associated input
    {
        if (bufferList.Count > 0)
        {
            BufferItem dequeuedItem = bufferList[0];
            bufferList.RemoveAt(0);

            return(dequeuedItem.GetInput());
        }
        return(StatesEnum.None);        // If list is empty, return none
    }