public class AnalogLowLimitDetectorRT extends TimeDelayedEventDetectorRT
Modifier and Type | Field and Description |
---|---|
private boolean |
eventActive
State field.
|
private org.apache.commons.logging.Log |
log |
private boolean |
lowLimitActive
State field.
|
private long |
lowLimitActiveTime |
private long |
lowLimitInactiveTime |
vo
Constructor and Description |
---|
AnalogLowLimitDetectorRT(PointEventDetectorVO vo) |
Modifier and Type | Method and Description |
---|---|
private void |
changeLowLimitActive()
This method is only called when the low limit changes between being active or not, i.e. if the point's value is
currently below the low limit, then it should never be called with a value of true.
|
protected long |
getConditionActiveTime() |
com.serotonin.web.i18n.LocalizableMessage |
getMessage() |
boolean |
isEventActive() |
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).
|
void |
setEventActive(boolean b)
This method is only called when the event changes between being active or not, i.e. if the event currently is
active, then it should never be called with a value of true.
|
initialize, initializeState, scheduleJob, scheduleTimeoutImpl, unscheduleJob
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 boolean lowLimitActive
private long lowLimitActiveTime
private long lowLimitInactiveTime
private boolean eventActive
public AnalogLowLimitDetectorRT(PointEventDetectorVO vo)
public com.serotonin.web.i18n.LocalizableMessage getMessage()
getMessage
in class PointEventDetectorRT
public boolean isEventActive()
private void changeLowLimitActive()
b
- public void pointChanged(PointValueTime oldValue, PointValueTime newValue)
DataPointListener
pointChanged
in interface DataPointListener
pointChanged
in class PointEventDetectorRT
protected long getConditionActiveTime()
getConditionActiveTime
in class TimeDelayedEventDetectorRT
public void setEventActive(boolean b)
setEventActive
in class TimeDelayedEventDetectorRT
b
-