L - defines the message listener typeA - defines the basic event typeM - defines the basic message typepublic interface Coordinator<L,A,M>
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.TransferQueue<Message<A,M>> |
getMessageQueue()
Returns the message queue of coordinator.
|
void |
handleMessage(java.lang.String id,
Message<A,M> message)
Handles message to specific component addressed by the id.
|
<P extends ComponentBase<L,M>> |
setComponentHandler(ComponentHandler<P,Message<A,M>> handler)
set associated componentHandler
|
<P extends ComponentBase<L,M>> |
setPerspectiveHandler(ComponentHandler<P,Message<A,M>> handler)
set associated perspectiveHandler
|
void handleMessage(java.lang.String id,
Message<A,M> message)
id, - the target id.message, - the messagejava.util.concurrent.TransferQueue<Message<A,M>> getMessageQueue()
<P extends ComponentBase<L,M>> void setComponentHandler(ComponentHandler<P,Message<A,M>> handler)
,
- is type of Componenthandler, - the component handler that handles component execution.<P extends ComponentBase<L,M>> void setPerspectiveHandler(ComponentHandler<P,Message<A,M>> handler)
,
- is type of Componenthandler, - the perspective handler that handles perspective execution.