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, unscheduleJobgetDurationDescription, getDurationMS, isJobScheduled, scheduleJob, scheduleTimeout, terminate, unscheduleJobcreateEventContext, getEventDetectorKey, getEventType, getMessage, joinTermination, pointBackdated, pointInitialized, pointSet, pointTerminated, pointUpdated, raiseEvent, returnToNormaladdListener, fireEventDetectorStateChanged, fireEventDetectorTerminated, hasListeners, removeListenerprivate 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)
DataPointListenerpointChanged in interface DataPointListenerpointChanged in class PointEventDetectorRTprotected long getConditionActiveTime()
getConditionActiveTime in class TimeDelayedEventDetectorRTpublic void setEventActive(boolean b)
setEventActive in class TimeDelayedEventDetectorRT