public class NegativeCusumDetectorRT extends TimeDelayedEventDetectorRT
| Modifier and Type | Field and Description |
|---|---|
private double |
cusum
State field.
|
private boolean |
eventActive
State field.
|
private boolean |
negativeCusumActive
State field.
|
private long |
negativeCusumActiveTime |
private long |
negativeCusumInactiveTime |
vo| Constructor and Description |
|---|
NegativeCusumDetectorRT(PointEventDetectorVO vo) |
| Modifier and Type | Method and Description |
|---|---|
private void |
changeNegativeCusumActive()
This method is only called when the negative CUSUM changes between being active or not, i.e. if the point's CUSUM
is currently above the limit, then it should never be called with a value of true.
|
protected long |
getConditionActiveTime() |
com.serotonin.web.i18n.LocalizableMessage |
getMessage() |
boolean |
isEventActive() |
void |
pointUpdated(PointValueTime newValue)
This method is called every time the point gets a value from somewhere (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, unscheduleJobgetDurationDescription, getDurationMS, isJobScheduled, scheduleJob, scheduleTimeout, terminate, unscheduleJobcreateEventContext, getEventDetectorKey, getEventType, joinTermination, pointBackdated, pointChanged, pointInitialized, pointSet, pointTerminated, raiseEvent, returnToNormaladdListener, fireEventDetectorStateChanged, fireEventDetectorTerminated, hasListeners, removeListenerprivate double cusum
private boolean negativeCusumActive
private long negativeCusumActiveTime
private long negativeCusumInactiveTime
private boolean eventActive
public NegativeCusumDetectorRT(PointEventDetectorVO vo)
public com.serotonin.web.i18n.LocalizableMessage getMessage()
getMessage in class PointEventDetectorRTpublic boolean isEventActive()
private void changeNegativeCusumActive()
b - public void pointUpdated(PointValueTime newValue)
DataPointListenerpointUpdated in interface DataPointListenerpointUpdated in class PointEventDetectorRTprotected long getConditionActiveTime()
getConditionActiveTime in class TimeDelayedEventDetectorRTpublic void setEventActive(boolean b)
setEventActive in class TimeDelayedEventDetectorRTb -