jabble
Class OutsideRangeTrigger

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

public class OutsideRangeTrigger
extends Trigger

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


Field Summary
 
Fields inherited from class jabble.Trigger
indicator
 
Constructor Summary
OutsideRangeTrigger(Indicator indicator, double min, double max)
          A new Trigger that fires if the indicator is outside the specified range.
 
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

OutsideRangeTrigger

public OutsideRangeTrigger(Indicator indicator,
                           double min,
                           double max)
A new Trigger that fires if the indicator is outside the specified range.

Parameters:
indicator - The indicator associated with the Trigger.
min - The lower boundary of the range, under which the Trigger will fire.
max - The upper boundery of the range, 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.