public class AnalogHighLimitDetectorRT extends TimeDelayedEventDetectorRT
Modifier and Type | Field and Description |
---|---|
private boolean |
eventActive
State field.
|
private boolean |
highLimitActive
State field.
|
private long |
highLimitActiveTime |
private long |
highLimitInactiveTime |
vo
Constructor and Description |
---|
AnalogHighLimitDetectorRT(PointEventDetectorVO vo) |
Modifier and Type | Method and Description |
---|---|
private void |
changeHighLimitActive()
This method is only called when the high limit changes between being active or not, i.e. if the point's value is
currently above the high 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 boolean highLimitActive
private long highLimitActiveTime
private long highLimitInactiveTime
private boolean eventActive
public AnalogHighLimitDetectorRT(PointEventDetectorVO vo)
public com.serotonin.web.i18n.LocalizableMessage getMessage()
getMessage
in class PointEventDetectorRT
public boolean isEventActive()
private void changeHighLimitActive()
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
-