|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.sim.kiem.ui.KiemEventListener
public class KiemEventListener
The Event Listener for the KIELER Execution Manager.
Constructor Summary | |
---|---|
KiemEventListener()
Instantiates a new kiem event listener. |
Method Summary | |
---|---|
void |
notifyEvent(KiemEvent event)
This is the basic notify method that is called by KIEM whenever an event occurs for which this EventListener is registered (see IKiemEventListener.provideEventOfInterest() ). |
KiemEvent |
provideEventOfInterest()
Return a KiemEvent type (integer value) that represents a number of events this component wants to listen to. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KiemEventListener()
Method Detail |
---|
public void notifyEvent(KiemEvent event)
IKiemEventListener.provideEventOfInterest()
).
notifyEvent
in interface IKiemEventListener
event
- the KiemEvent with additional attached information, depending
on the specific eventpublic KiemEvent provideEventOfInterest()
Return a KiemEvent type (integer value) that represents a number of events this component wants to listen to.
A KiemEvent can be a combination of several events. The simplest way to register for two events that e.g., indicate a step-command and the removal of the component is to have the following code:
public KiemEvent provideEventOfInterest() {
int[] events = {CMD_STEP, DELETED}
return new KiemEvent(events);
}
provideEventOfInterest
in interface IKiemEventListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |