org.speakright.core.render
Class Grammar.GrammarCondition

java.lang.Object
  extended by 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
           
 
Constructor Summary
Grammar.GrammarCondition()
           
Grammar.GrammarCondition(boolean b)
           
 
Method Summary
 void calculate(Grammar grammar, RenderContext rcontext)
          Calculate the current value of the condition.
 boolean value()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_value

protected boolean m_value
Constructor Detail

Grammar.GrammarCondition

public Grammar.GrammarCondition()

Grammar.GrammarCondition

public Grammar.GrammarCondition(boolean b)
Method Detail

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 condition
rcontext - rendering context