org.wiigee.event
Class GestureEvent

java.lang.Object
  extended by 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.


Constructor Summary
GestureEvent(ProcessingUnit source, boolean valid, int id, double probability)
          Create a GestureEvent
 
Method Summary
 int getId()
           
 double getProbability()
           
 ProcessingUnit getSource()
           
 boolean isValid()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

getId

public int getId()

isValid

public boolean isValid()

getProbability

public double getProbability()

getSource

public ProcessingUnit getSource()