jabble
Class UnderThresholdTrigger

java.lang.Object
  extended by jabble.Trigger
      extended by jabble.UnderThresholdTrigger

public class UnderThresholdTrigger
extends Trigger

A Trigger that fires if the threshold of an Indicator is below a certain threshold.


Field Summary
 
Fields inherited from class jabble.Trigger
indicator
 
Constructor Summary
UnderThresholdTrigger(Indicator indicator, double threshold)
          A new Trigger that fires if the indicator is below a certain threshold.
 
Method Summary
 boolean isVerified()
          True if the value of the indicator is under the given threshold
 
Methods inherited from class jabble.Trigger
init, processPoint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnderThresholdTrigger

public UnderThresholdTrigger(Indicator indicator,
                             double threshold)
A new Trigger that fires if the indicator is below a certain threshold.

Parameters:
indicator - The indicator associated with the Trigger.
threshold - The threshold under which the Trigger will fire.
Method Detail

isVerified

public boolean isVerified()
True if the value of the indicator is under the given threshold

Specified by:
isVerified in class Trigger
Returns:
true if indicator is below threshold