|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object i3.dragos.core.services.events.EventDetector
public class EventDetector
A simple 2-state automaton that waits for a specified event. It is mainly used for testing, and was included here
instead of the testcases directory so that it can also be used by dragos-system-testsuite
.
Constructor Summary | |
---|---|
EventDetector(EventFilter filter)
Creates an EventDetector. |
Method Summary | |
---|---|
void |
check(DragosEvent event)
Checks the supplied event. |
EventFilter |
getFilter()
Returns the EventFilter that determines acceptance of events. |
boolean |
hasDetected()
Returns true if the specified event was detected, false otherwise. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EventDetector(EventFilter filter)
filter
- A filter that determines which events should be detected.Method Detail |
---|
public void check(DragosEvent event) throws DragosException
event
- The event to check.
DragosException
- in case of errors.public boolean hasDetected()
true
if the specified event was detected, false
otherwise.
true
if the specified event was detected, false
otherwise.public EventFilter getFilter()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |