Modifier and Type | Method and Description |
---|---|
void |
addInternalEventListener(String type,
IInternalEventListener listener)
Add a internal event listener.
|
void |
addMessageEventListener(String type,
IMessageEventListener listener)
Add a message event listener.
|
IInternalEvent |
createInternalEvent(String type)
Create a new intenal event.
|
IMessageEvent |
createMessageEvent(String type)
Create a new message event.
|
IMessageEvent |
createReply(IMessageEvent event,
String msgeventtype)
Create a reply to a message event.
|
void |
deregisterMessageEvent(IMessageEvent mevent)
Remove a registered message event.
|
void |
dispatchInternalEvent(IInternalEvent event)
Dispatch an event.
|
void |
registerMessageEvent(IMessageEvent mevent)
Register a conversation or reply_with to be able
to send back answers to the source capability.
|
void |
removeInternalEventListener(String type,
IInternalEventListener listener)
Remove a internal event listener.
|
void |
removeMessageEventListener(String type,
IMessageEventListener listener)
Remove a message event listener.
|
IFuture |
sendMessage(IMessageEvent me)
Send a message after some delay.
|
getModelElement
IFuture sendMessage(IMessageEvent me)
me
- The message event.void dispatchInternalEvent(IInternalEvent event)
event
- The event.IMessageEvent createMessageEvent(String type)
IMessageEvent createReply(IMessageEvent event, String msgeventtype)
event
- The received message event.msgeventtype
- The reply message event type.IInternalEvent createInternalEvent(String type)
void registerMessageEvent(IMessageEvent mevent)
msgevent
- The message event.
todo: indexing for msgevents for speed.void deregisterMessageEvent(IMessageEvent mevent)
msgevent
- The message event.void addInternalEventListener(String type, IInternalEventListener listener)
type
- The internal event type.listener
- The internal event listener.async
- True, if the notification should be done on a separate thread.void removeInternalEventListener(String type, IInternalEventListener listener)
type
- The internal event type.listener
- The internal event listener.void addMessageEventListener(String type, IMessageEventListener listener)
type
- The message event type.listener
- The message event listener.async
- True, if the notification should be done on a separate thread.void removeMessageEventListener(String type, IMessageEventListener listener)
type
- The message event type.listener
- The message event listener.Copyright © 2012. All Rights Reserved.