se.chalmers.cs.gf.dialogutil.sr
Class RecognizerInput
java.lang.Object
se.chalmers.cs.gf.dialogutil.sr.RecognizerInput
- All Implemented Interfaces:
- TextInput
public class RecognizerInput
- extends java.lang.Object
- implements TextInput
A text input source which gets input from a Recognizer.
Constructor Summary |
RecognizerInput(Recognizer recog)
|
RecognizerInput(java.lang.String agentName,
java.lang.String[] libcomargs)
Connect to the OAA facilitator and start the recognizer
asynchronously. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
listeners
protected TextListenerList listeners
RecognizerInput
public RecognizerInput(Recognizer recog)
RecognizerInput
public RecognizerInput(java.lang.String agentName,
java.lang.String[] libcomargs)
- Connect to the OAA facilitator and start the recognizer
asynchronously.
addTextListener
public void addTextListener(TextListener l)
- Specified by:
addTextListener
in interface TextInput
removeTextListener
public void removeTextListener(TextListener l)
- Specified by:
removeTextListener
in interface TextInput
fireTextEvent
protected void fireTextEvent(java.lang.String text)
setEnabled
public void setEnabled(boolean enabled)
- Specified by:
setEnabled
in interface TextInput