public class PositiveCusumDetectorRT extends TimeDelayedEventDetectorRT
| Modifier and Type | Field and Description |
|---|---|
private double |
cusum
State field.
|
private boolean |
eventActive
State field.
|
private boolean |
positiveCusumActive
State field.
|
private long |
positiveCusumActiveTime |
private long |
positiveCusumInactiveTime |
vo| Constructor and Description |
|---|
PositiveCusumDetectorRT(PointEventDetectorVO vo) |
| Modifier and Type | Method and Description |
|---|---|
private void |
changePositiveCusumActive()
This method is only called when the positive 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 positiveCusumActive
private long positiveCusumActiveTime
private long positiveCusumInactiveTime
private boolean eventActive
public PositiveCusumDetectorRT(PointEventDetectorVO vo)
public com.serotonin.web.i18n.LocalizableMessage getMessage()
getMessage in class PointEventDetectorRTpublic boolean isEventActive()
private void changePositiveCusumActive()
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 -