se.chalmers.cs.gf.dialogutil.sr
Class RecognizerInput

java.lang.Object
  extended by 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.


Field Summary
protected  TextListenerList listeners
           
 
Constructor Summary
RecognizerInput(Recognizer recog)
           
RecognizerInput(java.lang.String agentName, java.lang.String[] libcomargs)
          Connect to the OAA facilitator and start the recognizer asynchronously.
 
Method Summary
 void addTextListener(TextListener l)
           
protected  void fireTextEvent(java.lang.String text)
           
 void removeTextListener(TextListener l)
           
 void setEnabled(boolean enabled)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listeners

protected TextListenerList listeners
Constructor Detail

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.

Method Detail

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