|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.speakright.core.render.Prompt.PromptCondition
org.speakright.core.render.PlayOnceCondition
public class PlayOnceCondition
A prompt condition that ensures a prompt is only played once. Often in a VUI we want to play a prompt the first time the user reaches some point, but not every time. The scope of this condition is a single activation of a flow object. An active object may have its execute method called one or more times. This condition ensures the prompt only is generated on the first execute.
| Field Summary |
|---|
| Fields inherited from class org.speakright.core.render.Prompt.PromptCondition |
|---|
m_value |
| Constructor Summary | |
|---|---|
PlayOnceCondition()
|
|
| Method Summary | |
|---|---|
void |
calculate(Prompt prompt,
RenderContext rcontext)
Calculate the current value of the condition. |
| Methods inherited from class org.speakright.core.render.Prompt.PromptCondition |
|---|
value |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PlayOnceCondition()
| Method Detail |
|---|
public void calculate(Prompt prompt,
RenderContext rcontext)
Prompt.PromptCondition
calculate in class Prompt.PromptConditionprompt - prompt that has the conditionrcontext - rendering context
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||