public abstract class SimpleEventDetector extends java.lang.Object implements EventDetector, com.serotonin.util.ILifecycle
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.CopyOnWriteArraySet<EventDetectorListener> |
listeners |
Constructor and Description |
---|
SimpleEventDetector() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(EventDetectorListener l) |
protected void |
fireEventDetectorStateChanged(long time) |
protected void |
fireEventDetectorTerminated() |
boolean |
hasListeners() |
void |
removeListener(EventDetectorListener l) |
void |
terminate() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isEventActive
private final java.util.concurrent.CopyOnWriteArraySet<EventDetectorListener> listeners
public void addListener(EventDetectorListener l)
public void removeListener(EventDetectorListener l)
protected void fireEventDetectorStateChanged(long time)
protected void fireEventDetectorTerminated()
public boolean hasListeners()
public void terminate()
terminate
in interface com.serotonin.util.ILifecycle