public class StateChangeCountDetectorRT extends TimeoutDetectorRT
| Modifier and Type | Field and Description |
|---|---|
private boolean |
eventActive
State field.
|
private long |
eventActiveTime |
private org.apache.commons.logging.Log |
log |
private java.util.List<PointValueTime> |
pointValues
State field.
|
vo| Constructor and Description |
|---|
StateChangeCountDetectorRT(PointEventDetectorVO vo) |
| Modifier and Type | Method and Description |
|---|---|
com.serotonin.web.i18n.LocalizableMessage |
getMessage() |
void |
initialize() |
boolean |
isEventActive() |
private void |
pointChanged(long time,
PointValueTime value) |
void |
pointChanged(PointValueTime oldValue,
PointValueTime newValue)
This method is called every time the point gets a value that is different from its previous value (except for its
initialization).
|
private void |
removeOldPointValues(long time) |
void |
scheduleTimeoutImpl(long fireTime) |
getDurationDescription, getDurationMS, isJobScheduled, scheduleJob, scheduleTimeout, terminate, unscheduleJobcreateEventContext, getEventDetectorKey, getEventType, joinTermination, pointBackdated, pointInitialized, pointSet, pointTerminated, pointUpdated, raiseEvent, returnToNormaladdListener, fireEventDetectorStateChanged, fireEventDetectorTerminated, hasListeners, removeListenerprivate final org.apache.commons.logging.Log log
private final java.util.List<PointValueTime> pointValues
private boolean eventActive
private long eventActiveTime
public StateChangeCountDetectorRT(PointEventDetectorVO vo)
public com.serotonin.web.i18n.LocalizableMessage getMessage()
getMessage in class PointEventDetectorRTpublic boolean isEventActive()
public void initialize()
initialize in interface com.serotonin.util.ILifecycleinitialize in class TimeoutDetectorRTpublic void pointChanged(PointValueTime oldValue, PointValueTime newValue)
DataPointListenerpointChanged in interface DataPointListenerpointChanged in class PointEventDetectorRTprivate void pointChanged(long time,
PointValueTime value)
public void scheduleTimeoutImpl(long fireTime)
scheduleTimeoutImpl in class TimeoutDetectorRTprivate void removeOldPointValues(long time)