|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wiigee.logic.ProcessingUnit
org.wiigee.logic.TriggeredProcessingUnit
public class TriggeredProcessingUnit
This class analyzes the AccelerationEvents emitted from a Wiimote and further creates and manages the different models for each type of gesture.
| Field Summary |
|---|
| Fields inherited from class org.wiigee.logic.ProcessingUnit |
|---|
classifier |
| Constructor Summary | |
|---|---|
TriggeredProcessingUnit()
|
|
| Method Summary | |
|---|---|
void |
accelerationReceived(AccelerationEvent event)
Since this class implements the WiimoteListener this procedure is necessary. |
void |
buttonPressReceived(ButtonPressedEvent event)
This method is from the WiimoteListener interface. |
void |
buttonReleaseReceived(ButtonReleasedEvent event)
This method would be called if a Device button has been released. |
void |
handleStartEvent(ActionStartEvent event)
|
void |
handleStopEvent(ActionStopEvent event)
|
void |
loadGesture(java.lang.String filename)
|
void |
motionStartReceived(MotionStartEvent event)
This method would be called if a Device is in idle state and then a motion starts or if a Device is in motion and then the motion stops and the Device is in idle state. |
void |
motionStopReceived(MotionStopEvent event)
This method would be called if a Device is in motion and then the motion stops and the Device is in idle state. |
void |
saveGesture(int id,
java.lang.String filename)
|
| Methods inherited from class org.wiigee.logic.ProcessingUnit |
|---|
addGestureListener, fireGestureEvent, reset |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TriggeredProcessingUnit()
| Method Detail |
|---|
public void accelerationReceived(AccelerationEvent event)
accelerationReceived in interface AccelerationListeneraccelerationReceived in class ProcessingUnitevent - The acceleration event which has to be processed by the
directional equivalence filter and which has to be added to the current
motion in recognition or training process.public void buttonPressReceived(ButtonPressedEvent event)
buttonPressReceived in interface ButtonListenerbuttonPressReceived in class ProcessingUnitevent - The button representation as an event.public void buttonReleaseReceived(ButtonReleasedEvent event)
ButtonListener
buttonReleaseReceived in interface ButtonListenerbuttonReleaseReceived in class ProcessingUnitevent - This is actually a meta-event NOT containing which button
has been released.public void motionStartReceived(MotionStartEvent event)
AccelerationListener
motionStartReceived in interface AccelerationListenermotionStartReceived in class ProcessingUnitevent - This is the event which contains if the Wiimote is now
in motion or not.public void motionStopReceived(MotionStopEvent event)
AccelerationListener
motionStopReceived in interface AccelerationListenermotionStopReceived in class ProcessingUnitevent - This is the event which contains if the Device is now
in motion or not.public void handleStartEvent(ActionStartEvent event)
public void handleStopEvent(ActionStopEvent event)
public void loadGesture(java.lang.String filename)
loadGesture in class ProcessingUnit
public void saveGesture(int id,
java.lang.String filename)
saveGesture in class ProcessingUnit
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||