org.speakright.core.render
Class Grammar.GrammarCondition
java.lang.Object
org.speakright.core.render.Grammar.GrammarCondition
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- DTMFOnlyModeGrammarCondition
- Enclosing class:
- Grammar
public static class Grammar.GrammarCondition
- 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).
GrammarCondition 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
Grammar.GrammarCondition
public Grammar.GrammarCondition()
Grammar.GrammarCondition
public Grammar.GrammarCondition(boolean b)
value
public boolean value()
calculate
public void calculate(Grammar grammar,
RenderContext rcontext)
- Calculate the current value of the condition.
- Parameters:
prompt - prompt that has the conditionrcontext - rendering context