|
TPTP 4.5.0 Platform Project Public API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IExecutionComponent
IExecutionComponent is the base class for all of the components in the runtime system. IExecutionComponent's are structured as a tree with the specialized ISession is the root of the tree on the workbench side.
IExecutionComponent's are uniquely identified at runtime with an ID. They are also named and typed but names and types are not guaranteed to be unique. Version support is provided as well.
IExecutionComponent's have at least four states. They can be inactive, ready, suspended, or dead.
| Field Summary | |
|---|---|
static int |
DEAD
|
static int |
INACTIVE
|
static int |
NOT_CONFIGURED
|
static int |
READY
|
static int |
SUSPENDED
|
| Method Summary | |
|---|---|
void |
addChild(IExecutionComponent child)
Add a child |
void |
addExecutionComponentStateChangeListener(IExecutionComponentStateChangeListener listener)
Adds an IExecutionComponentStateChangeListener to this IExecutionComponent |
void |
fireStateChangeEvent(ExecutionComponentStateChangeEvent event)
Fire a state change event. |
IExecutionComponent |
getChildById(java.lang.String id)
Retrieve a child of this IExecutionComponent based upon its ID. |
IExecutionComponent |
getChildByName(java.lang.String name)
Retrieve a child of this IExecutionComponent based upon its name. |
IExecutionComponent[] |
getChildren()
Get the first-level children that reside under this IExecutionComponent The typical heirarchy is a follows: ISession->IExecutor->IRemoteHyadesComponent It is possible, however, to have any level of nesting here. |
java.lang.String |
getId()
All IExecutionComponent instances must have an immutable ID. |
java.lang.String |
getName()
All IExecutionComponent instances must have an immutable name. |
INode |
getNode()
Get the node on which this IExecutionComponent resides. |
IExecutionComponent |
getParent()
Get the container where this IExecutionComponent is hosted. |
int |
getState()
|
java.lang.String |
getType()
All IExecutionComponent instances must have an immutable type. |
java.lang.String |
getVersion()
Retrieve the version. |
void |
handleMessage(IControlMessage message)
|
void |
init()
This method should be called by the factory implementations after the object has been created so that it can do some addional setup if necessary. |
void |
removeChild(IExecutionComponent child)
Remove a child |
void |
removeExecutionComponentStateChangeListener(IExecutionComponentStateChangeListener listener)
Removes an IExecutionComponentStateChangeListener from this IExecutionComponent |
void |
sendMessage(IControlMessage message)
|
void |
setParent(IExecutionComponent parent)
Sets the container of this IExecutionComponent. |
| Field Detail |
|---|
static final int INACTIVE
static final int NOT_CONFIGURED
static final int READY
static final int SUSPENDED
static final int DEAD
| Method Detail |
|---|
void init()
java.lang.String getName()
java.lang.String getId()
java.lang.String getType()
java.lang.String getVersion()
IExecutionComponent getParent()
void setParent(IExecutionComponent parent)
IExecutionComponent[] getChildren()
IExecutionComponent getChildById(java.lang.String id)
IExecutionComponent getChildByName(java.lang.String name)
name - void addChild(IExecutionComponent child)
child - the child to addvoid removeChild(IExecutionComponent child)
child - the child to removeINode getNode()
int getState()
void addExecutionComponentStateChangeListener(IExecutionComponentStateChangeListener listener)
listener - the listener to be informed of state change events.void removeExecutionComponentStateChangeListener(IExecutionComponentStateChangeListener listener)
listener - the listener to be no longer informed of state change events.void fireStateChangeEvent(ExecutionComponentStateChangeEvent event)
newState -
void handleMessage(IControlMessage message)
throws MessageProcessingException
MessageProcessingException
void sendMessage(IControlMessage message)
throws MessageDeliveryException
MessageDeliveryException
|
TPTP 4.5.0 Platform Project Public API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||