org.speakright.core.render
Class PlayOnceEverCondition

java.lang.Object
  extended by org.speakright.core.render.Prompt.PromptCondition
      extended by org.speakright.core.render.PlayOnceCondition
          extended by org.speakright.core.render.PlayOnceEverCondition
All Implemented Interfaces:
java.io.Serializable

public class PlayOnceEverCondition
extends PlayOnceCondition

A prompt condition that ensures a prompt is only played once ever during a call. 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 the entire call.

Author:
IanRaeLaptop
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.speakright.core.render.Prompt.PromptCondition
m_value
 
Constructor Summary
PlayOnceEverCondition()
           
 
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

PlayOnceEverCondition

public PlayOnceEverCondition()
Method Detail

calculate

public void calculate(Prompt prompt,
                      RenderContext rcontext)
Description copied from class: Prompt.PromptCondition
Calculate the current value of the condition.

Overrides:
calculate in class PlayOnceCondition
Parameters:
prompt - prompt that has the condition
rcontext - rendering context