org.speakright.core.render
Class Prompt.PromptCondition

java.lang.Object
  extended by 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
           
 
Constructor Summary
Prompt.PromptCondition()
           
Prompt.PromptCondition(boolean b)
           
 
Method Summary
 void calculate(Prompt prompt, 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

Prompt.PromptCondition

public Prompt.PromptCondition()

Prompt.PromptCondition

public Prompt.PromptCondition(boolean b)
Method Detail

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