|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wiigee.logic.ProcessingUnit
public abstract class ProcessingUnit
| Field Summary | |
|---|---|
protected Classifier |
classifier
|
| Constructor Summary | |
|---|---|
ProcessingUnit()
|
|
| Method Summary | |
|---|---|
abstract void |
accelerationReceived(AccelerationEvent event)
This method would be called if a Device source has been accelerated. |
void |
addGestureListener(GestureListener g)
Add an GestureListener to receive GestureEvents. |
abstract void |
buttonPressReceived(ButtonPressedEvent event)
This method would be called if a Device button has been pressed. |
abstract void |
buttonReleaseReceived(ButtonReleasedEvent event)
This method would be called if a Device button has been released. |
protected void |
fireGestureEvent(boolean valid,
int id,
double probability)
|
abstract void |
loadGesture(java.lang.String filename)
|
abstract 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. |
abstract 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 |
reset()
Resets the complete gesturemodel. |
abstract void |
saveGesture(int id,
java.lang.String filename)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Classifier classifier
| Constructor Detail |
|---|
public ProcessingUnit()
| Method Detail |
|---|
public void addGestureListener(GestureListener g)
g - Class which implements GestureListener interface.
protected void fireGestureEvent(boolean valid,
int id,
double probability)
public abstract void accelerationReceived(AccelerationEvent event)
AccelerationListener
accelerationReceived in interface AccelerationListenerevent - The acceleration representation as an event.public abstract void buttonPressReceived(ButtonPressedEvent event)
ButtonListener
buttonPressReceived in interface ButtonListenerevent - The button representation as an event.public abstract void buttonReleaseReceived(ButtonReleasedEvent event)
ButtonListener
buttonReleaseReceived in interface ButtonListenerevent - This is actually a meta-event NOT containing which button
has been released.public abstract void motionStartReceived(MotionStartEvent event)
AccelerationListener
motionStartReceived in interface AccelerationListenerevent - This is the event which contains if the Wiimote is now
in motion or not.public abstract void motionStopReceived(MotionStopEvent event)
AccelerationListener
motionStopReceived in interface AccelerationListenerevent - This is the event which contains if the Device is now
in motion or not.public void reset()
public abstract void loadGesture(java.lang.String filename)
public abstract void saveGesture(int id,
java.lang.String filename)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||