| 
The Meta-Environment API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttoolbus.adapter.AbstractTool
toolbus.adapter.java.AbstractJavaTool
public abstract class AbstractJavaTool
This class facilitates the functions a tool needs to be able to functions.
| Field Summary | 
|---|
| Fields inherited from class toolbus.adapter.AbstractTool | 
|---|
DIRECTTOOL, REMOTETOOL, termFactory, toolBridge | 
| Fields inherited from interface toolbus.IOperations | 
|---|
ACKDO, ACKEVENT, CONNECT, DEBUGPERFORMANCESTATS, DISCONNECT, DO, END, EVAL, EVENT, PERFORMANCESTATS, REQUEST, RESPONSE, TERMINATE, UNDEFINED, VALUE | 
| Constructor Summary | |
|---|---|
AbstractJavaTool()
Default constructor.  | 
|
| Method Summary | |
|---|---|
 void | 
connect(java.lang.String[] args)
Connects to the ToolBus.  | 
 void | 
connectDirectly(ToolBus toolbus,
                               java.lang.String toolName,
                               int toolID)
Connects to the ToolBus directly (instead of through TCP/IP).  | 
| Methods inherited from class toolbus.adapter.AbstractTool | 
|---|
disconnect, getFactory, getToolBridge, pack, receiveAckEvent, receiveTerminate, sendEvent, sendRequest, setToolBridge, terminate, unpack | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public AbstractJavaTool()
| Method Detail | 
|---|
public void connect(java.lang.String[] args)
             throws java.lang.Exception
connect in class AbstractToolargs - The arguments that contain the required information for running a tool (name + id
            and additionally the host + port of the ToolBus, depending on how this tool is
            connected to the ToolBus).
java.lang.Exception - Thrown when something goes wrong during the parsing of the arguments or the
             establishing of the connection.
public void connectDirectly(ToolBus toolbus,
                            java.lang.String toolName,
                            int toolID)
                     throws java.lang.Exception
toolbus - The toolbus to connect to.toolName - The name of the tool.toolID - The ID of the tool.
java.lang.Exception - When connecting to the toolbus directly failed.
  | 
The Meta-Environment API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||