|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Function:An Interface that defines the API for an Event Handler Adapter An object that implements this interface will know how to subcribe (register) / unsusbcribe (unregister) for events from a specific Event Service that may be used in the system.
| Method Summary | |
void |
notifyEvent(PonderEventI event)
Being called when the Event that triggers the corresponding obligation policy has occured |
boolean |
register(EventI eventSpec)
Register event with the EventService Returns true if subscription succeded. |
void |
setEventHandler(EventHandler eventHandler)
Sets the object to which notifications should be forwarded |
void |
setPolicy(ObligationI newObligation)
Sets the obligation policy for this EventHandlerAdapter |
boolean |
unregister()
Unregister event with the EventService Returns true if un-subscription succeded. |
| Method Detail |
public boolean register(EventI eventSpec)
public boolean unregister()
public void setEventHandler(EventHandler eventHandler)
public void setPolicy(ObligationI newObligation)
public void notifyEvent(PonderEventI event)
event - The PonderEventI which represents the runtime event to
be used during the execution
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||