ix.itest
Class BasicItest

java.lang.Object
  |
  +--ix.icore.IXAgent
        |
        +--ix.itest.BasicItest
All Implemented Interfaces:
StatusValues
Direct Known Subclasses:
I_TEST, ItestExample

public class BasicItest
extends IXAgent
implements StatusValues

The generic I-TEST class and application main program.

Its IPC name can be given by the "-ipc-name" command-line argument. For example, to pretend to be I-DEEL:

    java ix.test.BasicItest -ipc -ipc-name=I-DEEL
 


Inner Class Summary
static class BasicItest.SendingThread
          Stoppable thread for sending a series of messages.
 class BasicItest.TestSequenceListener
          ActionListener for AbstractButtons that send a sequence of messages.
 
Field Summary
protected  java.lang.Object[] builtinDestinations
           
protected  java.lang.String displayName
           
protected  ItestFrame frame
           
protected  java.lang.String ipcName
           
protected  ReceivePanel receivePanel
           
protected  SendPanel sendPanel
           
 
Fields inherited from class ix.icore.IXAgent
textFrame, thisAgent
 
Fields inherited from interface ix.icore.process.StatusValues
PRIORITY_HIGH, PRIORITY_LOW, PRIORITY_MEDIUM, PRIORITY_NONE, PRODUCT_BLANK, PRODUCT_COMPLETE, PRODUCT_DRAFT, STATUS_BLANK, STATUS_COMPLETE, STATUS_EXECUTING, STATUS_IMPOSSIBLE, STATUS_NA, STATUS_POSSIBLE
 
Constructor Summary
BasicItest()
           
BasicItest(java.lang.String frameTitle)
           
 
Method Summary
protected  void addIssueTest(java.lang.String toName, int priority, java.lang.String issueText)
          Adds a test that sends a single issue to a designated agent.
protected  void addIssueTest(java.lang.String toName, java.lang.String issueText)
          Adds a test that sends a single issue to a designated agent.
protected  void addReportSequenceTest(java.lang.String buttonText, java.lang.String toName, java.lang.String ref, java.util.List messageTexts)
          Adds a test that sends a series of reports to a designated agent.
protected  void addReportSequenceTest(java.lang.String buttonText, java.lang.String toName, java.lang.String ref, java.lang.String[] messageTexts)
          Adds a test that sends a series of reports to a designated agent.
protected  void addTests()
          Adds any tests common to all versions of I-TEST.
static void changeButtonVerb(javax.swing.AbstractButton button, java.lang.String from, java.lang.String to)
          Changes the an initial segment of an abstract button's text.
 java.lang.Object getAgentIPCName()
          Returns the object used to represent the agent as an IPC "destination".
 void handleInput(IPC.InputMessage message)
          Handles external input in the form of an IPC.InputMessage that contains an Issue or Report object.
static void main(java.lang.String[] argv)
          Main program.
 javax.swing.JPanel makeLogoPanel()
          Creates a standard logo panel for I-TEST.
protected  void processCommandLineArguments()
          Command-line argument processing used by all versions of I-TEST.
 void setupFrame()
          Gives the main I-TEST frame its contents
 void startup()
          Completes basic I-TEST setup and initialization.
 
Methods inherited from class ix.icore.IXAgent
displayMessage, getAgent, getAgentSymbolName, 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

protected java.lang.String ipcName

displayName

protected java.lang.String displayName

builtinDestinations

protected java.lang.Object[] builtinDestinations

frame

protected ItestFrame frame

sendPanel

protected SendPanel sendPanel

receivePanel

protected ReceivePanel receivePanel
Constructor Detail

BasicItest

public BasicItest()

BasicItest

public BasicItest(java.lang.String frameTitle)
Method Detail

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

processCommandLineArguments

protected void processCommandLineArguments()
Command-line argument processing used by all versions of I-TEST.
    -ipc-name=name
 
Overrides:
processCommandLineArguments in class IXAgent
See Also:
IXAgent.processCommandLineArguments()

startup

public void startup()
Completes basic I-TEST setup and initialization.
Overrides:
startup in class IXAgent

main

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

setupFrame

public void setupFrame()
Gives the main I-TEST frame its contents

makeLogoPanel

public javax.swing.JPanel makeLogoPanel()
Creates a standard logo panel for I-TEST. Overridden in subclasses that have, say, a picture to use instead.

handleInput

public void handleInput(IPC.InputMessage message)
Handles external input in the form of an IPC.InputMessage that contains an Issue or Report object.
Overrides:
handleInput in class IXAgent

addTests

protected void addTests()
Adds any tests common to all versions of I-TEST.

addIssueTest

protected void addIssueTest(java.lang.String toName,
                            java.lang.String issueText)
Adds a test that sends a single issue to a designated agent.

addIssueTest

protected void addIssueTest(java.lang.String toName,
                            int priority,
                            java.lang.String issueText)
Adds a test that sends a single issue to a designated agent.

addReportSequenceTest

protected void addReportSequenceTest(java.lang.String buttonText,
                                     java.lang.String toName,
                                     java.lang.String ref,
                                     java.util.List messageTexts)
Adds a test that sends a series of reports to a designated agent.

addReportSequenceTest

protected void addReportSequenceTest(java.lang.String buttonText,
                                     java.lang.String toName,
                                     java.lang.String ref,
                                     java.lang.String[] messageTexts)
Adds a test that sends a series of reports to a designated agent.

changeButtonVerb

public static void changeButtonVerb(javax.swing.AbstractButton button,
                                    java.lang.String from,
                                    java.lang.String to)
Changes the an initial segment of an abstract button's text.