Class RuleExecution

java.lang.Object
org.openhab.core.automation.RuleExecution
All Implemented Interfaces:
Comparable<RuleExecution>

@NonNullByDefault public final class RuleExecution extends Object implements Comparable<RuleExecution>
Expected execution of a Rule.
Author:
Sönke Küper - Initial contribution
  • Constructor Details

    • RuleExecution

      public RuleExecution(Date date, Rule rule)
      Creates a new RuleExecution.
      Parameters:
      date - The time when the rule will be executed.
      rule - The rule that will be executed.
  • Method Details

    • getDate

      public Date getDate()
      Returns the time when the rule will be executed.
    • getRule

      public Rule getRule()
      Returns the rule that will be executed.
    • compareTo

      public int compareTo(RuleExecution o)
      Specified by:
      compareTo in interface Comparable<RuleExecution>