© 2006-2007 ETH Zurich

org.ximtec.igesture
Class MultimodalGestureQueue

java.lang.Object
  extended by org.ximtec.igesture.MultimodalGestureQueue

public class MultimodalGestureQueue
extends Object

This class represents the input queue of the multi-modal gesture recogniser.

Author:
Bjorn Puype, bpuype@gmail.com

Nested Class Summary
 class MultimodalGestureQueue.QueueElement
          This class represents an element in the queue and encapsulates different information.
 
Constructor Summary
MultimodalGestureQueue(Map<String,String> charMapping, Map<String,Calendar> timeWindows, MultimodalGestureRecogniser owner)
           
 
Method Summary
 boolean isEmpty()
           
 MultimodalGestureQueue.QueueElement peek()
          Retrieves but does not remove the head of the queue, null if empty
 MultimodalGestureQueue.QueueElement poll()
          Retrieves and removes the head of the queue, null if empty
 void push(ResultSet resultSet)
          Push an element in the queue
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultimodalGestureQueue

public MultimodalGestureQueue(Map<String,String> charMapping,
                              Map<String,Calendar> timeWindows,
                              MultimodalGestureRecogniser owner)
Method Detail

push

public void push(ResultSet resultSet)
Push an element in the queue

Parameters:
resultSet - The recognised gesture as a ResultSet

peek

public MultimodalGestureQueue.QueueElement peek()
Retrieves but does not remove the head of the queue, null if empty

Returns:

poll

public MultimodalGestureQueue.QueueElement poll()
Retrieves and removes the head of the queue, null if empty

Returns:

isEmpty

public boolean isEmpty()

size

public int size()

© 2006-2007 ETH Zurich

Copyright © 2007-2010 Global Information Systems Group, ETH Zurich. All Rights Reserved.