|
|||||||||
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-DEEL:
java ix.test.SimpleIXAgent -ipc -ipc-name=I-DEEL
Field Summary | |
(package private) java.lang.String |
ipcName
|
Fields inherited from class ix.icore.IXAgent |
textFrame, thisAgent |
Constructor Summary | |
SimpleIXAgent()
|
Method Summary | |
java.lang.Object |
getAgentIPCName()
Returns the object used to represent the agent as an IPC "destination". |
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, getAgentSymbolName, handleInput, handleNewIssue, handleNewReport, mainStartup, pre_handleInput, startServer |
Methods inherited from class java.lang.Object |
|
Field Detail |
java.lang.String ipcName
Constructor Detail |
public SimpleIXAgent()
Method Detail |
protected void processCommandLineArguments()
IXAgent
-debug=boolean -fontsize=int -ipc=nameAt present, fontsize is ignored.
debug is used to set Debug.on
.
The name in -ipc=name argument will be
interpreted by the IPC.getCommunicationStrategy(String)
method.
At present, this method also makes any standard I-X changes to the look and feel.
processCommandLineArguments
in class IXAgent
ix.icore.IXAgent
ix.iface.Iface#adjustLookAndFeel()
,
IPC.getCommunicationStrategy(String methodName)
,
Debug.on
,
Parameters
protected void startup()
IXAgent
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. At present, this method does nothing, and all the work is done in subclasses.
startup
in class IXAgent
public java.lang.Object getAgentIPCName()
IXAgent
getAgentIPCName
in class IXAgent
ix.icore.IXAgent
IPC
,
IPC.CommunicationStrategy
public static void main(java.lang.String[] argv)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |