org.speakright.demos.simpsons
Class App.AskCharacter

java.lang.Object
  extended by org.speakright.core.FlowBase
      extended by org.speakright.core.flows.QuestionFlow
          extended by org.speakright.sro.BaseSROQuestion
              extended by org.speakright.demos.simpsons.App.AskCharacter
All Implemented Interfaces:
java.io.Serializable, IFlow
Enclosing class:
App

public static class App.AskCharacter
extends BaseSROQuestion

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.speakright.sro.BaseSROQuestion
BaseSROQuestion.MyConfirmationWrapper
 
Field Summary
 Model M
           
 
Fields inherited from class org.speakright.sro.BaseSROQuestion
m_cmds, m_main1Prompt, m_maxReExecutions, m_modelVar, m_noreco1Prompt, m_noreco2Prompt, m_noreco3Prompt, m_noreco4Prompt, m_prefixPrompt, m_silence1Prompt, m_silence2Prompt, m_silence3Prompt, m_silence4Prompt, m_slotName, m_subject, m_subjectWord
 
Fields inherited from class org.speakright.core.flows.QuestionFlow
m_quest
 
Constructor Summary
App.AskCharacter()
           
 
Method Summary
 IFlow getNext(IFlow current, SRResults results)
          The default implementation of getNext is to return null.
 void onBegin(IFlowContext context)
          The default implementation of onBegin is to do nothing.
 boolean shouldExecute()
          Used for optional sub-flows.
 
Methods inherited from class org.speakright.sro.BaseSROQuestion
addCancelCommand, addCommand, execute, initMainPrompt, initPrompt, initPrompts, initPrompts, initSubPrompts, onValidateFailed, set_main1Prompt, set_noreco1Prompt, set_noreco2Prompt, set_noreco3Prompt, set_noreco4Prompt, set_prefixPrompt, set_silence1Prompt, set_silence2Prompt, set_silence3Prompt, set_silence4Prompt, setConfirmer, setModelVar, setPromptCondition, setSubjectPlurality
 
Methods inherited from class org.speakright.core.flows.QuestionFlow
add, addBinding, addGrammar, addGrammar, addPrompt, createRenderer, InitPrompts
 
Methods inherited from class org.speakright.core.FlowBase
executionCount, fixupGrammar, fixupPrompt, getFirst, getSubFlowAfter, log, logError, name, onCatch, onComplete, onDisconnect, onEnd, onNoInput, onPlatformError, onTransferFailed, promptGroup, setExecutionCount, setName, setPromptGroup, validateInput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

M

public Model M
Constructor Detail

App.AskCharacter

public App.AskCharacter()
Method Detail

shouldExecute

public boolean shouldExecute()
Description copied from interface: IFlow
Used for optional sub-flows. A flow object can return false from this method if it wants to be skipped (that is, not execute). All the restrictions of optional-sub-flows apply, such as can't-be-last.

Specified by:
shouldExecute in interface IFlow
Overrides:
shouldExecute in class FlowBase
Returns:
true (default) to execute, false to not execute this flow object

onBegin

public void onBegin(IFlowContext context)
Description copied from class: FlowBase
The default implementation of onBegin is to do nothing.

Specified by:
onBegin in interface IFlow
Overrides:
onBegin in class FlowBase

getNext

public IFlow getNext(IFlow current,
                     SRResults results)
Description copied from class: FlowBase
The default implementation of getNext is to return null.

Specified by:
getNext in interface IFlow
Overrides:
getNext in class BaseSROQuestion
Parameters:
current - the currently executing flow object. More precisely, current is the flow object that this object most recently returned from getFirst or getNext.
results - the results of current's execution by the speech platform. Results contains user input and/or events such as disconnect or platform-error.
Returns:
the next flow to run, or null which means this flow object is finished.