|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--ix.icore.IXAgent
|
+--ix.test.SimpleIXAgent
An example of a very simple I-X agent. Its IPC name can be given by the "-ipc-name" command-line argument. For example, to pretend to be I-TEST
java ix.test.SimpleIXAgent -ipc -ipc-name=ITEST
| Fields inherited from class ix.icore.IXAgent |
contactManager, displayName, ipcName, ipcStrategyName, symbolName, textFrame, thisAgent |
| Constructor Summary | |
SimpleIXAgent()
|
|
| Method Summary | |
static void |
main(java.lang.String[] argv)
|
protected void |
processCommandLineArguments()
Handles command-line arguments common to all I-X agents. |
protected void |
startup()
Method called by the mainStartup(String[] argv) method
to perform any setup and initialization that should take place after
this agent's constructor has been called and command-line arguments
have been processed. |
| Methods inherited from class ix.icore.IXAgent |
displayMessage, getAgent, getAgentDisplayName, getAgentIPCName, getAgentSymbolName, getContactManager, handleInput, handleNewActivity, handleNewChatMessage, handleNewConstraint, handleNewIssue, handleNewReport, mainStartup, notePossibleNewContact, pre_handleInput, startServer, tellUserOfException |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public SimpleIXAgent()
| Method Detail |
protected void processCommandLineArguments()
IXAgentThe following are handled directly my this method:
-debug=boolean
-ipc=name
-ipc-name=name
-symbol-name=name
-display-name=name
debug is used to set Debug.on.
The name in -ipc=name argument will be
interpreted by the IPC.getCommunicationStrategy(String)
method.
The name in the -icp-name=name
argument sets the name that this agent calls itself for IPC
and that is returned by the getAgentIPCName()
method.
Needs further explanation of ipc-name, and of symbol-name and display-name. ...
The processCommandLineArguments method of
this agent's contact manager is called to handle arguments
that list relationships with other agents.
processCommandLineArguments in class IXAgentix.icore.IXAgentIfaceUtil.adjustLookAndFeel(),
IPC.getCommunicationStrategy(String methodName),
ContactManager.processCommandLineArguments(),
Debug.on,
Parametersprotected void startup()
IXAgentmainStartup(String[] argv) method
to perform any setup and initialization that should take place after
this agent's constructor has been called and command-line arguments
have been processed. At present, this method does nothing, and all the work is done in subclasses.
startup in class IXAgentpublic static void main(java.lang.String[] argv)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||