use of de.avanux.smartapplianceenabler.schedule.Timeframe in project SmartApplianceEnabler by camueller.
the class RunningTimeMonitor method activateTimeframeInterval.
public void activateTimeframeInterval(LocalDateTime now, Integer runtime) {
activeTimeframeInterval = null;
Schedule schedule = new Schedule(runtime, null, new TimeOfDay(now), new TimeOfDay(now));
Interval interval = new Interval(now.toDateTime(), now.plusSeconds(runtime).toDateTime());
Timeframe timeframe = schedule.getTimeframe();
activateTimeframeInterval(now, new TimeframeInterval(timeframe, interval));
}
Aggregations