|
||||||||||
| 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.tests.MyFlow
public class MyFlow
| Field Summary | |
|---|---|
Model |
M
|
boolean |
m_addBinding
|
boolean |
m_addBindingX
|
boolean |
m_exitInGetNext
|
boolean |
m_handleNoInput
|
boolean |
m_shouldExecute
|
boolean |
m_throwInExecute
|
boolean |
m_throwInGetNext
|
| Fields inherited from class org.speakright.core.flows.BasicFlow |
|---|
m_L |
| Constructor Summary | |
|---|---|
MyFlow(java.lang.String name)
|
|
| Method Summary | |
|---|---|
void |
addSubFlow(IFlow flow)
|
void |
execute(IExecutionContext context)
The default implementation of execute is to render this object. |
IFlow |
getFirst(IFlowContext context)
If there are sub-flows then return the first one, otherwise return self. |
IFlow |
getNext(IFlow current,
SRResults results)
get the next flow. |
void |
onBegin(IFlowContext context)
The default implementation of onBegin is to do nothing. |
void |
onEnd(IFlowContext context)
The default implementation of onEnd is to do nothing. |
IFlow |
onNoInput(IFlow current,
SRResults results)
The default implementation of onNoInput is to return null, indicating that this object does not handle no-input events. |
boolean |
shouldExecute()
Used for optional sub-flows. |
| Methods inherited from class org.speakright.core.flows.BasicFlow |
|---|
add, addPromptFlow, findSubFlow, getSubFlowAfter, SubFlowCount |
| Methods inherited from class org.speakright.core.FlowBase |
|---|
createRenderer, executionCount, fixupGrammar, fixupPrompt, log, logError, name, onCatch, onComplete, onDisconnect, onPlatformError, onTransferFailed, onValidateFailed, 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 |
|---|
public Model M
public boolean m_shouldExecute
public boolean m_exitInGetNext
public boolean m_handleNoInput
public boolean m_throwInGetNext
public boolean m_throwInExecute
public boolean m_addBinding
public boolean m_addBindingX
| Constructor Detail |
|---|
public MyFlow(java.lang.String name)
| Method Detail |
|---|
public boolean shouldExecute()
IFlow
shouldExecute in interface IFlowshouldExecute in class FlowBasepublic void execute(IExecutionContext context)
FlowBase
execute in interface IFlowexecute in class FlowBasecontext - Contains the page renderer.public IFlow getFirst(IFlowContext context)
BasicFlow
getFirst in interface IFlowgetFirst in class BasicFlow
public IFlow getNext(IFlow current,
SRResults results)
BasicFlow
getNext in interface IFlowgetNext in class BasicFlowcurrent - 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.
public void onBegin(IFlowContext context)
FlowBase
onBegin in interface IFlowonBegin in class FlowBasepublic void onEnd(IFlowContext context)
FlowBase
onEnd in interface IFlowonEnd in class FlowBase
public IFlow onNoInput(IFlow current,
SRResults results)
FlowBase
onNoInput in interface IFlowonNoInput in class FlowBasecurrent - 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.
public void addSubFlow(IFlow flow)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||