org.speakright.core.render
Class Prompt.PromptCondition
java.lang.Object
org.speakright.core.render.Prompt.PromptCondition
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- PlayOnceCondition
- Enclosing class:
- Prompt
public static class Prompt.PromptCondition
- extends java.lang.Object
- implements java.io.Serializable
A prompt condition controls whether a prompt plays or not. It's common in VUIs to have some prompts
only play once (the first time), or only when some state exists (the user has logged in).
PromptCondition is a base class.
- Author:
- IanRaeLaptop
- See Also:
- Serialized Form
|
Field Summary |
protected boolean |
m_value
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_value
protected boolean m_value
Prompt.PromptCondition
public Prompt.PromptCondition()
Prompt.PromptCondition
public Prompt.PromptCondition(boolean b)
value
public boolean value()
calculate
public void calculate(Prompt prompt,
RenderContext rcontext)
- Calculate the current value of the condition.
- Parameters:
prompt - prompt that has the conditionrcontext - rendering context