FROG

FROG Recognizer of Gestures

SessionListener Interface Reference

SessionListener stands as a level of abstraction between a user of Frog and an actual Device (DeviceListener). More...

Inheritance diagram for SessionListener:
Collaboration diagram for SessionListener:

List of all members.

Public Member Functions

void accelerationPerformed (AccelEvent e)
 Executed whenever a Session detects an acceleration from a Device it is listening to.
void gestureComplete (boolean good, Device d)
 Executed whenever a Session detects a complete gesture from a Device it is listening to.
void unexpectedDisconnect (Device d)
 Executed whenever a Session detects an unexpected disconnect from a Device it is listening to.
void gestureRecognized (GestureModel g)
 Executed whenever a Session has recognized a gesture performed by the Device it is listening to (requires being in recognition mode).

Detailed Description

SessionListener stands as a level of abstraction between a user of Frog and an actual Device (DeviceListener).

It can receive device events passed up from a Session as well as if a gesture was recognized by Session.

Author:
Team Better Recognize

Member Function Documentation

void accelerationPerformed ( AccelEvent  e  ) 

Executed whenever a Session detects an acceleration from a Device it is listening to.

Implements DeviceListener.

Implemented in Player, EvaluationPanel, PlayerPanel, RecognitionSectionPanel, TrainPanel, and User.

void gestureComplete ( boolean  good,
Device  d 
)

Executed whenever a Session detects a complete gesture from a Device it is listening to.

Implements DeviceListener.

Implemented in Player, EvaluationPanel, PlayerPanel, RecognitionSectionPanel, TrainPanel, and User.

void gestureRecognized ( GestureModel  g  ) 

Executed whenever a Session has recognized a gesture performed by the Device it is listening to (requires being in recognition mode).

Parameters:
g The gesture recognized
See also:
Session.inRecognitionMode()

Implemented in Player, EvaluationPanel, PlayerPanel, RecognitionSectionPanel, TrainPanel, and User.

void unexpectedDisconnect ( Device  d  ) 

Executed whenever a Session detects an unexpected disconnect from a Device it is listening to.

Implements DeviceListener.

Implemented in Player, EvaluationPanel, PlayerPanel, RecognitionSectionPanel, TrainPanel, and User.


The documentation for this interface was generated from the following file:
 All Classes Namespaces Files Functions Variables