public abstract class PointEventDetectorRT extends SimpleEventDetector implements DataPointListener
Modifier and Type | Field and Description |
---|---|
protected PointEventDetectorVO |
vo |
Constructor and Description |
---|
PointEventDetectorRT() |
Modifier and Type | Method and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
createEventContext() |
java.lang.String |
getEventDetectorKey() |
protected EventType |
getEventType() |
protected abstract com.serotonin.web.i18n.LocalizableMessage |
getMessage() |
void |
initialize() |
void |
joinTermination() |
void |
pointBackdated(PointValueTime value)
This method is called when a backdated value is received.
|
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 |
pointInitialized()
This method is called for all existing listeners when the point is initialized.
|
void |
pointSet(PointValueTime oldValue,
PointValueTime newValue)
This method is called every time the point gets set, whether the value changes or not.
|
void |
pointTerminated()
This method is called when the point has been terminated, allowing listeners to react as necessary.
|
void |
pointUpdated(PointValueTime newValue)
This method is called every time the point gets a value from somewhere (except for its initialization).
|
protected void |
raiseEvent(long time,
java.util.Map<java.lang.String,java.lang.Object> context) |
protected void |
returnToNormal(long time) |
void |
terminate() |
addListener, fireEventDetectorStateChanged, fireEventDetectorTerminated, hasListeners, removeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isEventActive
protected PointEventDetectorVO vo
protected EventType getEventType()
protected void raiseEvent(long time, java.util.Map<java.lang.String,java.lang.Object> context)
protected void returnToNormal(long time)
protected java.util.Map<java.lang.String,java.lang.Object> createEventContext()
protected abstract com.serotonin.web.i18n.LocalizableMessage getMessage()
public java.lang.String getEventDetectorKey()
public void initialize()
initialize
in interface com.serotonin.util.ILifecycle
public void terminate()
terminate
in interface com.serotonin.util.ILifecycle
terminate
in class SimpleEventDetector
public void joinTermination()
joinTermination
in interface com.serotonin.util.ILifecycle
public void pointChanged(PointValueTime oldValue, PointValueTime newValue)
DataPointListener
pointChanged
in interface DataPointListener
public void pointSet(PointValueTime oldValue, PointValueTime newValue)
DataPointListener
pointSet
in interface DataPointListener
public void pointUpdated(PointValueTime newValue)
DataPointListener
pointUpdated
in interface DataPointListener
public void pointBackdated(PointValueTime value)
DataPointListener
pointBackdated
in interface DataPointListener
public void pointInitialized()
DataPointListener
pointInitialized
in interface DataPointListener
public void pointTerminated()
DataPointListener
pointTerminated
in interface DataPointListener