|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.sim.kiem.internal.EventManager
public class EventManager
The event manager holds several listener-lists for each available event. These listeners can be easily notified with optionally attached information.
Constructor Summary | |
---|---|
EventManager()
Instantiates a new EventManager. |
Method Summary | |
---|---|
void |
add(DataComponentWrapper dataComponentWrapper)
Adds the DataComponentWrapper to one or more event lists. |
void |
add(IKiemEventListener listener)
Adds the IKiemEventListener to one or more event lists. |
void |
notify(int event)
Notify all registered DataComponents via the KiemEvent mechanism. |
void |
notify(KiemEvent events)
Notify all registered DataComponents via the KiemEvent mechanism. |
void |
remove(DataComponentWrapper dataComponentWrapper)
Removes the DataComponentWrapper from all event list it has registered. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EventManager()
Method Detail |
---|
public void add(IKiemEventListener listener)
listener
- the listenerpublic void add(DataComponentWrapper dataComponentWrapper)
dataComponentWrapper
- the data component wrapperpublic void remove(DataComponentWrapper dataComponentWrapper)
dataComponentWrapper
- the data component wrapperpublic void notify(int event)
event
- the event as an KiemEvent (integer) constantpublic void notify(KiemEvent events)
events
- the event containing optional additional information
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |