org.opengts.rule
Interface RuleListener


public interface RuleListener


Method Summary
 void handleRuleNotification(Account account, Device device, EventData event, boolean isCronMode, java.lang.String selector, Rule rule)
          Callback to handle a rule notification trigger
 

Method Detail

handleRuleNotification

void handleRuleNotification(Account account,
                            Device device,
                            EventData event,
                            boolean isCronMode,
                            java.lang.String selector,
                            Rule rule)
Callback to handle a rule notification trigger

Parameters:
account - The account which triggered the rule
device - The device which triggered the rule (may be null)
event - The event which triggered the rule (may be null)
isCronMode - True if executed from the 'Cron' task, False is executed from a normal incoming event analysis.
selector - The rule selector that triggered this notification
rule - The rule record from which the selector was obtained. May be null if the selector was not provided by a Rule record.