devs.speechpackage
Class NewGrammarDialogNodeBehavior

java.lang.Object
  extended by devs.speechpackage.DialogNodeBehavior
      extended by devs.speechpackage.NewGrammarDialogNodeBehavior

 class NewGrammarDialogNodeBehavior
extends DialogNodeBehavior

A Dialog node behavior that loads a completely new grammar upon entry into the node


Constructor Summary
NewGrammarDialogNodeBehavior()
          creates a NewGrammarDialogNodeBehavior
 
Method Summary
 java.lang.String getGrammarName()
          Returns the name of the grammar.
 void onEntry()
          Called with the dialog manager enters this entry
 
Methods inherited from class devs.speechpackage.DialogNodeBehavior
getGrammar, getName, getRuleParse, getTagString, onExit, onInit, onReady, onRecognize, toString, trace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NewGrammarDialogNodeBehavior

public NewGrammarDialogNodeBehavior()
creates a NewGrammarDialogNodeBehavior

Parameters:
grammarName - the grammar name
Method Detail

onEntry

public void onEntry()
             throws java.io.IOException
Called with the dialog manager enters this entry

Overrides:
onEntry in class DialogNodeBehavior
Throws:
java.io.IOException

getGrammarName

public java.lang.String getGrammarName()
Returns the name of the grammar. The name of the grammar is the same as the name of the node

Returns:
the grammar name