ix.test
Class SimpleIXAgent

java.lang.Object
  |
  +--ix.icore.IXAgent
        |
        +--ix.test.SimpleIXAgent

public class SimpleIXAgent
extends IXAgent

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
 

See Also:
SimpleIXAgent.java source code

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
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ipcName

java.lang.String ipcName
Constructor Detail

SimpleIXAgent

public SimpleIXAgent()
Method Detail

processCommandLineArguments

protected void processCommandLineArguments()
Description copied from class: IXAgent
Handles command-line arguments common to all I-X agents.
    -debug=boolean
    -fontsize=int
    -ipc=name
 
At 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.

Overrides:
processCommandLineArguments in class IXAgent
Following copied from class: ix.icore.IXAgent
See Also:
ix.iface.Iface#adjustLookAndFeel(), IPC.getCommunicationStrategy(String methodName), Debug.on, Parameters

startup

protected void startup()
Description copied from class: IXAgent
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.

At present, this method does nothing, and all the work is done in subclasses.

Overrides:
startup in class IXAgent

getAgentIPCName

public java.lang.Object getAgentIPCName()
Description copied from class: IXAgent
Returns the object used to represent the agent as an IPC "destination". This object is usually, but not necessarily, a string containing the agent's name. The details will depend on the set of communication strategies that might be used.
Overrides:
getAgentIPCName in class IXAgent
Following copied from class: ix.icore.IXAgent
See Also:
IPC, IPC.CommunicationStrategy

main

public static void main(java.lang.String[] argv)