jabble
Class OverThresholdTrigger

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

public class OverThresholdTrigger
extends Trigger

A Trigger that fires if the value of an Indicator is above a certain value.


Field Summary
 
Fields inherited from class jabble.Trigger
indicator
 
Constructor Summary
OverThresholdTrigger(Indicator indicator, double threshold)
          A new Trigger that fires if the indicator is above a certain value.
 
Method Summary
 boolean isVerified()
          Returns whether the Trigger is verified.
 
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

OverThresholdTrigger

public OverThresholdTrigger(Indicator indicator,
                            double threshold)
A new Trigger that fires if the indicator is above a certain value.

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

isVerified

public boolean isVerified()
Description copied from class: Trigger
Returns whether the Trigger is verified. This function has a valid value only after the init() method call and a full iteration over the Grid using processPoint(). Results are undetermined otherwise.

Specified by:
isVerified in class Trigger
Returns:
true if the trigger condition is verified.