|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object devs.speechpackage.DialogManager.DialogNode
class DialogManager.DialogNode
Represents a node in the dialog
Constructor Summary | |
---|---|
DialogManager.DialogNode(java.lang.String name,
DialogNodeBehavior behavior)
Creates a dialog node with the given name an application behavior |
Method Summary | |
---|---|
(package private) void |
enter()
Enters the node, prepares it for recognition |
(package private) void |
exit()
Exits the node |
DialogManager |
getDialogManager()
|
edu.cmu.sphinx.jsapi.JSGFGrammar |
getGrammar()
Returns the JSGF Grammar for the dialog manager that contains this node |
java.lang.String |
getName()
Gets the name of the node |
(package private) void |
init()
Initializes the node |
(package private) java.lang.String |
recognize()
Performs recognition at the node. |
void |
trace(java.lang.String msg)
Traces a message |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
DialogManager.DialogNode(java.lang.String name, DialogNodeBehavior behavior)
name
- the name of the nodebehavior
- the application behavor for the nodeMethod Detail |
---|
void init()
void enter() throws java.io.IOException
java.io.IOException
java.lang.String recognize() throws javax.speech.recognition.GrammarException
javax.speech.recognition.GrammarException
void exit()
public java.lang.String getName()
public edu.cmu.sphinx.jsapi.JSGFGrammar getGrammar()
public void trace(java.lang.String msg)
msg
- the message to tracepublic DialogManager getDialogManager()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |