|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.speakright.core.FlowBase
org.speakright.core.flows.BasicFlow
org.speakright.core.flows.SRApp
org.speakright.demos.simpsons.App
public class App
| Nested Class Summary | |
|---|---|
static class |
App.AskCharacter
|
static class |
App.CharacterDescription
|
static class |
App.MainMenu
|
static class |
App.RelatedCharacterYesNo
|
static class |
App.VoteYesNo
|
static class |
App.VotingResultsList
|
| Field Summary | |
|---|---|
Model |
M
|
| Fields inherited from class org.speakright.core.flows.BasicFlow |
|---|
m_L |
| Constructor Summary | |
|---|---|
App()
|
|
| Method Summary | |
|---|---|
protected IFlow |
createWelcome()
Return the first flow object, which is usually a welcome prompt. |
protected void |
initMainLoop(LoopFlow loop)
Return the main loop sub-flow. |
void |
onBegin(IFlowContext context)
Invokes getWelcome, getMainLoop, and getGoodbye. |
IFlow |
onCatch(IFlow current,
SRResults results,
java.lang.String eventName,
ThrowEvent event)
The default implementation of onCatch is to transfer to the operator. |
| Methods inherited from class org.speakright.core.flows.SRApp |
|---|
createGoodbye, createMainLoop, getMainLoop, isAppEvent, onDisconnect, onNoInput, onPlatformError, onTransferFailed, onValidateFailed, transferToOperator |
| 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, onComplete, onEnd, 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 |
|---|
public Model M
| Constructor Detail |
|---|
public App()
| Method Detail |
|---|
protected IFlow createWelcome()
SRApp
createWelcome in class SRAppprotected void initMainLoop(LoopFlow loop)
SRApp
initMainLoop in class SRApppublic void onBegin(IFlowContext context)
SRApp
onBegin in interface IFlowonBegin in class SRApp
public IFlow onCatch(IFlow current,
SRResults results,
java.lang.String eventName,
ThrowEvent event)
SRApp
onCatch in interface IFlowonCatch in class SRAppcurrent - 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||