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, unscheduleJob
getDurationDescription, getDurationMS, isJobScheduled, scheduleJob, scheduleTimeout, terminate, unscheduleJob
createEventContext, getEventDetectorKey, getEventType, joinTermination, pointBackdated, pointChanged, pointInitialized, pointSet, pointTerminated, raiseEvent, returnToNormal
addListener, fireEventDetectorStateChanged, fireEventDetectorTerminated, hasListeners, removeListener
private 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 PointEventDetectorRT
public boolean isEventActive()
private void changePositiveCusumActive()
b
- public void pointUpdated(PointValueTime newValue)
DataPointListener
pointUpdated
in interface DataPointListener
pointUpdated
in class PointEventDetectorRT
protected long getConditionActiveTime()
getConditionActiveTime
in class TimeDelayedEventDetectorRT
public void setEventActive(boolean b)
setEventActive
in class TimeDelayedEventDetectorRT
b
-