|
TPTP 4.1.0 Platform Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
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 |
public static final int INACTIVE
public static final int NOT_CONFIGURED
public static final int READY
public static final int SUSPENDED
public static final int DEAD
| Method Detail |
public void init()
public java.lang.String getName()
public java.lang.String getId()
public java.lang.String getType()
public java.lang.String getVersion()
public IExecutionComponent getParent()
public void setParent(IExecutionComponent parent)
public IExecutionComponent[] getChildren()
public IExecutionComponent getChildById(java.lang.String id)
public IExecutionComponent getChildByName(java.lang.String name)
name - public void addChild(IExecutionComponent child)
child - the child to addpublic void removeChild(IExecutionComponent child)
child - the child to removepublic INode getNode()
public int getState()
public void addExecutionComponentStateChangeListener(IExecutionComponentStateChangeListener listener)
listener - the listener to be informed of state change events.public void removeExecutionComponentStateChangeListener(IExecutionComponentStateChangeListener listener)
listener - the listener to be no longer informed of state change events.public void fireStateChangeEvent(ExecutionComponentStateChangeEvent event)
public void handleMessage(IControlMessage message)
throws MessageProcessingException
MessageProcessingException
public void sendMessage(IControlMessage message)
throws MessageDeliveryException
MessageDeliveryException
|
TPTP 4.1.0 Platform Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||