public class ScheduledEventRT extends SimpleEventDetector implements ModelTimeoutClient<java.lang.Boolean>
Modifier and Type | Field and Description |
---|---|
private com.serotonin.timer.TimerTask |
activeTask |
private boolean |
eventActive |
private ScheduledEventType |
eventType |
private com.serotonin.timer.TimerTask |
inactiveTask |
private ScheduledEventVO |
vo |
private static java.lang.String[] |
weekdays |
Constructor and Description |
---|
ScheduledEventRT(ScheduledEventVO vo) |
Modifier and Type | Method and Description |
---|---|
com.serotonin.timer.TimerTrigger |
createTrigger(boolean activeTrigger) |
com.serotonin.web.i18n.LocalizableMessage |
getMessage() |
ScheduledEventVO |
getVo() |
void |
initialize() |
boolean |
isEventActive() |
void |
joinTermination() |
private void |
raiseEvent(long time) |
private void |
returnToNormal(long time) |
void |
scheduleTimeout(java.lang.Boolean active,
long fireTime) |
void |
terminate() |
addListener, fireEventDetectorStateChanged, fireEventDetectorTerminated, hasListeners, removeListener
private final ScheduledEventVO vo
private ScheduledEventType eventType
private boolean eventActive
private com.serotonin.timer.TimerTask activeTask
private com.serotonin.timer.TimerTask inactiveTask
private static final java.lang.String[] weekdays
public ScheduledEventRT(ScheduledEventVO vo)
public ScheduledEventVO getVo()
private void raiseEvent(long time)
private void returnToNormal(long time)
public com.serotonin.web.i18n.LocalizableMessage getMessage()
public boolean isEventActive()
isEventActive
in interface EventDetector
public void scheduleTimeout(java.lang.Boolean active, long fireTime)
scheduleTimeout
in interface ModelTimeoutClient<java.lang.Boolean>
public void initialize()
initialize
in interface com.serotonin.util.ILifecycle
public void terminate()
terminate
in interface com.serotonin.util.ILifecycle
terminate
in class SimpleEventDetector
public void joinTermination()
joinTermination
in interface com.serotonin.util.ILifecycle
public com.serotonin.timer.TimerTrigger createTrigger(boolean activeTrigger)