org.wiigee.event
Class GestureEvent
java.lang.Object
org.wiigee.event.GestureEvent
public class GestureEvent
- extends java.lang.Object
This event would be generated if a gesture has been detected.
It contains information about the gesture "name" or type,
the accelerationstreamanalyzer which generated the event (source)
and the probability calculated from the bayes classifier.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GestureEvent
public GestureEvent(ProcessingUnit source,
boolean valid,
int id,
double probability)
- Create a GestureEvent
- Parameters:
source - The Source, which detected the gesture.id - A gesture ID for identifying a gesture.probability - The Bayes-Classifier calculated probability.
getId
public int getId()
isValid
public boolean isValid()
getProbability
public double getProbability()
getSource
public ProcessingUnit getSource()