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, unscheduleJob
createEventContext, getEventDetectorKey, getEventType, joinTermination, pointBackdated, pointInitialized, pointSet, pointTerminated, pointUpdated, raiseEvent, returnToNormal
addListener, fireEventDetectorStateChanged, fireEventDetectorTerminated, hasListeners, removeListener
private 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 PointEventDetectorRT
public boolean isEventActive()
public void initialize()
initialize
in interface com.serotonin.util.ILifecycle
initialize
in class TimeoutDetectorRT
public void pointChanged(PointValueTime oldValue, PointValueTime newValue)
DataPointListener
pointChanged
in interface DataPointListener
pointChanged
in class PointEventDetectorRT
private void pointChanged(long time, PointValueTime value)
public void scheduleTimeoutImpl(long fireTime)
scheduleTimeoutImpl
in class TimeoutDetectorRT
private void removeOldPointValues(long time)