public abstract class StateDetectorRT extends TimeDelayedEventDetectorRT
Modifier and Type | Field and Description |
---|---|
private boolean |
eventActive
State field.
|
private org.apache.commons.logging.Log |
log |
private boolean |
stateActive
State field.
|
private long |
stateActiveTime |
private long |
stateInactiveTime |
vo
Constructor and Description |
---|
StateDetectorRT() |
Modifier and Type | Method and Description |
---|---|
private void |
changeStateActive() |
protected long |
getConditionActiveTime() |
protected boolean |
isActive() |
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) |
protected abstract boolean |
stateDetected(PointValueTime newValue) |
initialize, initializeState, scheduleJob, scheduleTimeoutImpl, unscheduleJob
getDurationDescription, getDurationMS, isJobScheduled, scheduleJob, scheduleTimeout, terminate, unscheduleJob
createEventContext, getEventDetectorKey, getEventType, getMessage, joinTermination, pointBackdated, pointInitialized, pointSet, pointTerminated, pointUpdated, raiseEvent, returnToNormal
addListener, fireEventDetectorStateChanged, fireEventDetectorTerminated, hasListeners, removeListener
private final org.apache.commons.logging.Log log
private boolean stateActive
private long stateActiveTime
private long stateInactiveTime
private boolean eventActive
protected boolean isActive()
public boolean isEventActive()
private void changeStateActive()
protected abstract boolean stateDetected(PointValueTime newValue)
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