© 2006-2007 ETH Zurich

org.ximtec.igesture
Class MultimodalGestureQueue.QueueElement

java.lang.Object
  extended by org.ximtec.igesture.MultimodalGestureQueue.QueueElement
All Implemented Interfaces:
Comparable<MultimodalGestureQueue.QueueElement>
Enclosing class:
MultimodalGestureQueue

public class MultimodalGestureQueue.QueueElement
extends Object
implements Comparable<MultimodalGestureQueue.QueueElement>

This class represents an element in the queue and encapsulates different information.

Author:
Bjönöype, bpuype@gmail.com

Constructor Summary
MultimodalGestureQueue.QueueElement(ResultSet resultSet, String character)
          Constructor
 
Method Summary
 int compareTo(MultimodalGestureQueue.QueueElement o)
           
 void decrementWindows()
          Decrement the number of time windows by 1.
 String getCharacterRepresentation()
           
 Gesture<?> getGesture()
           
 ResultSet getResultSet()
           
 long getTime()
           
 int getWindows()
          The number of time windows overlapping this gesture.
 void incrementWindows()
          Increment the number of time windows by 1.
 boolean isIdentified()
           
 void setIdentified(boolean identified)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MultimodalGestureQueue.QueueElement

public MultimodalGestureQueue.QueueElement(ResultSet resultSet,
                                           String character)
Constructor

Method Detail

isIdentified

public boolean isIdentified()
Returns:
the identified

setIdentified

public void setIdentified(boolean identified)
Parameters:
identified - the identified to set

getWindows

public int getWindows()
The number of time windows overlapping this gesture.

Returns:
the windows

incrementWindows

public void incrementWindows()
Increment the number of time windows by 1.


decrementWindows

public void decrementWindows()
Decrement the number of time windows by 1.


getGesture

public Gesture<?> getGesture()
Returns:
the gs

getCharacterRepresentation

public String getCharacterRepresentation()
Returns:
the ch

getTime

public long getTime()
Returns:
the time

compareTo

public int compareTo(MultimodalGestureQueue.QueueElement o)
Specified by:
compareTo in interface Comparable<MultimodalGestureQueue.QueueElement>

getResultSet

public ResultSet getResultSet()

toString

public String toString()
Overrides:
toString in class Object

© 2006-2007 ETH Zurich

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