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, removeListenerprivate 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 EventDetectorpublic void scheduleTimeout(java.lang.Boolean active,
long fireTime)
scheduleTimeout in interface ModelTimeoutClient<java.lang.Boolean>public void initialize()
initialize in interface com.serotonin.util.ILifecyclepublic void terminate()
terminate in interface com.serotonin.util.ILifecycleterminate in class SimpleEventDetectorpublic void joinTermination()
joinTermination in interface com.serotonin.util.ILifecyclepublic com.serotonin.timer.TimerTrigger createTrigger(boolean activeTrigger)