org.speakright.core.tests
Class App1

java.lang.Object
  extended by org.speakright.core.FlowBase
      extended by org.speakright.core.flows.BasicFlow
          extended by org.speakright.core.tests.App1
All Implemented Interfaces:
java.io.Serializable, IFlow

public class App1
extends BasicFlow

See Also:
Serialized Form

Field Summary
 Model M
           
 
Fields inherited from class org.speakright.core.flows.BasicFlow
m_L
 
Constructor Summary
App1()
           
 
Method Summary
 IFlow onCatch(IFlow current, SRResults results, java.lang.String eventName, ThrowEvent event)
          The default implementation of onCatch is to return null, indicating that this object does not handle custom events.
 IFlow onDisconnect(IFlow current, SRResults results)
          The default implementation of onDisconnect is to return null, indicating that this object does not handle disconnect events.
 
Methods inherited from class org.speakright.core.flows.BasicFlow
add, addPromptFlow, findSubFlow, getFirst, getNext, getSubFlowAfter, SubFlowCount
 
Methods inherited from class org.speakright.core.FlowBase
createRenderer, execute, executionCount, fixupGrammar, fixupPrompt, log, logError, name, onBegin, onComplete, onEnd, onNoInput, onPlatformError, onTransferFailed, onValidateFailed, promptGroup, setExecutionCount, setName, setPromptGroup, shouldExecute, 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

App1

public App1()
Method Detail

onDisconnect

public IFlow onDisconnect(IFlow current,
                          SRResults results)
Description copied from class: FlowBase
The default implementation of onDisconnect is to return null, indicating that this object does not handle disconnect events.

Specified by:
onDisconnect in interface IFlow
Overrides:
onDisconnect in class FlowBase
Parameters:
current - the currently executing flow object.
results - the results of current's execution. In this case results will contain a Disconnect result code. User input may be present, if the caller spoke before hanging up. Some applications may want to process this final utterance before terminating.
Returns:
the next flow to run, or null which means this flow object does not handle this event.

onCatch

public IFlow onCatch(IFlow current,
                     SRResults results,
                     java.lang.String eventName,
                     ThrowEvent event)
Description copied from class: FlowBase
The default implementation of onCatch is to return null, indicating that this object does not handle custom events.

Specified by:
onCatch in interface IFlow
Overrides:
onCatch in class FlowBase
Parameters:
current - the currently executing flow object.
results - the results of current's execution.
eventName - name of the event. most event handling can be done using just the name.
event - event object. advanced event handling may require the actual event object
Returns:
the next flow to run, or null which means this flow object does not handle this event.