java.lang.Object
org.openhab.core.model.script.actions.Timer

@NonNullByDefault public class Timer extends Object
The Timer is a wrapper for the Timer interface. This is necessary because the implementation methods of an interface can't be called from the script engine if the implementation is not in a public package or internal to the model bundle
Author:
Jan N. Klug - Initial contribution
  • Constructor Details

    • Timer

      public Timer(Timer timer)
  • Method Details

    • cancel

      public boolean cancel()
    • getExecutionTime

      public @Nullable ZonedDateTime getExecutionTime()
    • isActive

      public boolean isActive()
    • isCancelled

      public boolean isCancelled()
    • isRunning

      public boolean isRunning()
    • hasTerminated

      public boolean hasTerminated()
    • reschedule

      public boolean reschedule(ZonedDateTime newTime)