|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.ximtec.igesture.Recogniser
public class Recogniser
The main recogniser component.
| Field Summary | |
|---|---|
static int |
MIXED_MODE
|
static int |
MULTIMODAL_MODE
|
static int |
NORMAL_MODE
|
| Constructor Summary | |
|---|---|
Recogniser(Configuration config)
Creates a new recogniser. |
|
Recogniser(Configuration config,
GestureHandler gestureHandler)
Creates a new recogniser. |
|
Recogniser(Configuration config,
GestureSet gestureSet)
Creates a new recogniser. |
|
Recogniser(InputStream config)
Creates a new recogniser. |
|
Recogniser(InputStream config,
InputStream set,
GestureHandler gestureHandler)
Creates a new recogniser. |
|
| Method Summary | |
|---|---|
void |
addGestureHandler(GestureHandler gestureHandler)
Adds a gesture handler to the recogniser. |
void |
addMultimodalGestureHandler(GestureHandler handler)
Add a multimodal gesture handler to the recogniser. |
protected void |
fireEvent(ResultSet resultSet)
Fires an event and informs all registered gesture handlers. |
List<Algorithm> |
getAlgorithms()
|
Set<GestureHandler> |
getGestureHandlers()
Get the associated gesture handlers. |
int |
getMode()
Get the mode of this recogniser |
static Recogniser |
newRecogniser(String configFile,
String gestureSetFile)
|
ResultSet |
recognise(Gesture<?> gesture)
Recognises a gesture. |
ResultSet |
recognise(Gesture<?> gesture,
boolean recogniseAll)
Recognises a gesture. |
ResultSet |
recognise(org.sigtec.ink.Note note)
Recognises a gesture. |
ResultSet |
recognise(org.sigtec.ink.Note note,
boolean recogniseAll)
Recognises a gesture. |
void |
removeGestureHandler(GestureHandler gestureHandler)
Removes a gesture handler from the recogniser. |
void |
removeMultimodalGestureHandler(GestureHandler handler)
Remove a multimodal gesture handler from the recogniser |
void |
setMode(int mode)
Change the mode of this recogniser. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MIXED_MODE
public static final int MULTIMODAL_MODE
public static final int NORMAL_MODE
| Constructor Detail |
|---|
public Recogniser(Configuration config)
throws AlgorithmException
config - the configuration object.
AlgorithmException - if the recogniser could not be created.
public Recogniser(Configuration config,
GestureHandler gestureHandler)
throws AlgorithmException
config - the configuration object.gestureHandler - the gesture handler to be added.
AlgorithmException - if the recogniser could not be created.
public Recogniser(Configuration config,
GestureSet gestureSet)
throws AlgorithmException
config - the configuration object.gestureSet - the gesture set to be used.
AlgorithmException - if the recogniser could not be created.
public Recogniser(InputStream config)
throws AlgorithmException
config - the input stream from which the XML configuration can be
read.
AlgorithmException - if the recogniser could not be created.
public Recogniser(InputStream config,
InputStream set,
GestureHandler gestureHandler)
throws AlgorithmException
config - the input stream from where the XML configuration can be
read.set - the input stream from where the gesture set in XML format can be
read.gestureHandler - the gesture handler to be informed about results.
AlgorithmException - if the recogniser could not be created.| Method Detail |
|---|
public void addGestureHandler(GestureHandler gestureHandler)
gestureHandler - the gesture handler to be added.public void removeGestureHandler(GestureHandler gestureHandler)
gestureHandler - the gesture handler to be removed.protected void fireEvent(ResultSet resultSet)
resultSet - the result set to be used as an argument for the fired
event.
public ResultSet recognise(Gesture<?> gesture,
boolean recogniseAll)
gesture - the gesture to be recognised.recogniseAll - true if the combination of all algorithms has to be
returned, false if only the result of the first algorithm that
recognises the result has to be returned.
public ResultSet recognise(Gesture<?> gesture)
gesture - the gesture to be recognised.
public ResultSet recognise(org.sigtec.ink.Note note)
note - the note to be recognised.
public ResultSet recognise(org.sigtec.ink.Note note,
boolean recogniseAll)
note - the note to be recognised.recogniseAll - true if the combination of all algorithms has to be
returned, false if only the result of the first algorithm that
recognises the result has to be returned.
public List<Algorithm> getAlgorithms()
public static Recogniser newRecogniser(String configFile,
String gestureSetFile)
throws AlgorithmException
AlgorithmExceptionpublic Set<GestureHandler> getGestureHandlers()
public void setMode(int mode)
mode - The value to setpublic int getMode()
public void addMultimodalGestureHandler(GestureHandler handler)
public void removeMultimodalGestureHandler(GestureHandler handler)
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||