L
- defines the action listener typeA
- defines the basic action typeM
- defines the basic message typepublic interface ISubComponent<L,A,M> extends IComponent<L,A,M>, IHandleable<A,M>
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getExecutionTarget()
Returns the target id where component will be displayed in.
|
IAction<A,M> |
getNextIncomingMessage()
Returns next message in pipe.
|
java.lang.String |
getParentId()
returns the id of parent component
|
boolean |
hasIncomingMessage()
Returns true if component has message in pipe.
|
void |
initEnv(java.lang.String parentId,
java.util.concurrent.BlockingQueue<IAction<A,M>> messageQueue)
Set parentId and global message queue to component
|
boolean |
isBlocked()
Component is blocked when executed in thread.
|
void |
lock()
Lock Component for execution in thread.
|
void |
putIncomingMessage(IAction<A,M> action)
Add new message to component.
|
void |
release()
Release lock after execution in thread.
|
void |
setExecutionTarget(java.lang.String target)
Set the target id where component will be displayed in.
|
getActionListener, getActionListener, getId, getName, isActive, isStarted, setActive, setId, setName
handle
java.lang.String getExecutionTarget()
void setExecutionTarget(java.lang.String target)
target
- boolean hasIncomingMessage()
void putIncomingMessage(IAction<A,M> action)
action
- IAction<A,M> getNextIncomingMessage()
boolean isBlocked()
void lock()
void release()
java.lang.String getParentId()