Package org.openhab.model.script.internal.actions

Examples of org.openhab.model.script.internal.actions.TimerImpl


   */
 
  private static Timer makeTimer(AbstractInstant instant, String closure, JobDataMap dataMap) {
    JobKey jobKey = new JobKey(instant.toString() + ": " + closure.toString());
        Trigger trigger = newTrigger().startAt(instant.toDate()).build();
    Timer timer = new TimerImpl(jobKey, trigger.getKey(), instant);
    dataMap.put("timer", timer);
    try {
          JobDetail job = newJob(TimerExecutionJob.class)
              .withIdentity(jobKey)
              .usingJobData(dataMap)
View Full Code Here

TOP

Related Classes of org.openhab.model.script.internal.actions.TimerImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.