|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdevs.speechpackage.DialogNodeBehavior
class DialogNodeBehavior
Provides the default behavior for dialog node. Applications will typically extend this class and override methods as appropriate
| Constructor Summary | |
|---|---|
DialogNodeBehavior()
|
|
| Method Summary | |
|---|---|
edu.cmu.sphinx.jsapi.JSGFGrammar |
getGrammar()
Retrieves the grammar associated with this ndoe |
java.lang.String |
getName()
Returns the name for this node |
(package private) javax.speech.recognition.RuleParse |
getRuleParse(edu.cmu.sphinx.result.Result result)
Retrieves the rule parse for the given result |
(package private) java.lang.String |
getTagString(edu.cmu.sphinx.result.Result result)
Gets a space delimited string of tags representing the result |
void |
onEntry()
Called when this node becomes the active node |
void |
onExit()
Called when this node is no lnoger the active node |
void |
onInit(DialogManager.DialogNode node)
Called during the initialization phase |
void |
onReady()
Called when this node is ready to perform recognition |
java.lang.String |
onRecognize(edu.cmu.sphinx.result.Result result)
|
java.lang.String |
toString()
Returns the string representation of this object |
(package private) void |
trace(java.lang.String msg)
Outputs a trace message |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
DialogNodeBehavior()
| Method Detail |
|---|
public void onInit(DialogManager.DialogNode node)
node - the dialog node that the behavior is attached to
public void onEntry()
throws java.io.IOException
java.io.IOExceptionpublic void onReady()
public java.lang.String onRecognize(edu.cmu.sphinx.result.Result result)
throws javax.speech.recognition.GrammarException
javax.speech.recognition.GrammarExceptionpublic void onExit()
public java.lang.String getName()
public java.lang.String toString()
toString in class java.lang.Objectpublic edu.cmu.sphinx.jsapi.JSGFGrammar getGrammar()
javax.speech.recognition.RuleParse getRuleParse(edu.cmu.sphinx.result.Result result)
throws javax.speech.recognition.GrammarException
the - recognition result
javax.speech.recognition.GrammarException - if there is an error while parsing the
result
java.lang.String getTagString(edu.cmu.sphinx.result.Result result)
throws javax.speech.recognition.GrammarException
result - the recognition result
javax.speech.recognition.GrammarException - if there is an error while parsing the
resultvoid trace(java.lang.String msg)
the - trace message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||