ix.ip2
Class Ip2

java.lang.Object
  |
  +--ix.icore.IXAgent
        |
        +--ix.ip2.Ip2
Direct Known Subclasses:
Ip2Example

public class Ip2
extends IXAgent

The generic I-P2 class and application main program


Inner Class Summary
 class Ip2.ConnectHandler
           
 class Ip2.IssueToActivityHandler
           
 
Field Summary
(package private)  AgendaViewer activityViewer
           
(package private)  boolean classic
           
protected  PanelController controller
           
protected  Domain domain
           
protected  java.lang.String domainName
           
protected  Ip2Frame frame
           
(package private)  AgendaViewer issueViewer
           
protected  java.lang.String logoImage
           
protected  java.lang.String logoLine1
           
protected  java.lang.String logoLine2
           
(package private)  StateViewer stateViewer
           
 
Fields inherited from class ix.icore.IXAgent
contactManager, displayName, ipcName, symbolName, textFrame, thisAgent
 
Constructor Summary
Ip2()
           
 
Method Summary
 void addForwardingHandler(java.lang.String verb, AgentRelationship rel, boolean reportBack)
           
protected  void addIssueHandlers()
          Install any built-in issue and activity handlers.
protected  void addTestMenuItems()
          Called when the main frame is set up to add items to the frame menu bar's "Test" menu.
protected  void addTestMenuItems(java.lang.String filename)
           
 void handleNewActivity(Activity activity)
          Handles new activities from external sources.
 void handleNewChatMessage(ChatMessage message)
          Handles new chat messages.
 void handleNewConstraint(Constraint constraint)
          Handles new constraints from external sources.
 void handleNewIssue(Issue issue)
          Handles new issues from external sources.
 void handleNewReport(Report report)
          Handles new reports from external sources.
static void main(java.lang.String[] argv)
          Main program.
protected  AgendaViewer makeActivityViewer()
          Called to create the activity viewer.
protected  AgendaViewer makeIssueViewer()
          Called to create the issue viewer.
protected  javax.swing.JPanel makeLogoPanel()
          Makes the LogoPanel for the application's main frame.
protected  StateViewer makeStateViewer()
          Called to create the state viewer.
protected  void processCommandLineArguments()
          Command-line argument processing for arguments used by all versions of I-P2.
protected  void readDomain(Domain domain)
          Read in any default domain description.
 void reset()
          Called to restore the initial state.
 void startup()
          Completes basic I-P2 setup and initialization.
 
Methods inherited from class ix.icore.IXAgent
displayMessage, getAgent, getAgentDisplayName, getAgentIPCName, getAgentSymbolName, getContactManager, handleInput, mainStartup, notePossibleNewContact, pre_handleInput, startServer, tellUserOfException
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

domain

protected Domain domain

controller

protected PanelController controller

frame

protected Ip2Frame frame

classic

boolean classic

activityViewer

AgendaViewer activityViewer

issueViewer

AgendaViewer issueViewer

stateViewer

StateViewer stateViewer

logoLine1

protected java.lang.String logoLine1

logoLine2

protected java.lang.String logoLine2

logoImage

protected java.lang.String logoImage

domainName

protected java.lang.String domainName
Constructor Detail

Ip2

public Ip2()
Method Detail

main

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

processCommandLineArguments

protected void processCommandLineArguments()
Command-line argument processing for arguments used by all versions of I-P2.
Overrides:
processCommandLineArguments in class IXAgent
Following copied from class: ix.icore.IXAgent
See Also:
IfaceUtil.adjustLookAndFeel(), IPC.getCommunicationStrategy(String methodName), ContactManager.processCommandLineArguments(), Debug.on, Parameters

startup

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

makeActivityViewer

protected AgendaViewer makeActivityViewer()
Called to create the activity viewer. This method can be redefined in subclass that want to instantiate a different viewer class.

makeIssueViewer

protected AgendaViewer makeIssueViewer()
Called to create the issue viewer. This method can be redefined in subclass that want to instantiate a different viewer class.

makeStateViewer

protected StateViewer makeStateViewer()
Called to create the state viewer. This method can be redefined in subclass that want to instantiate a different viewer class.

readDomain

protected void readDomain(Domain domain)
Read in any default domain description.

makeLogoPanel

protected javax.swing.JPanel makeLogoPanel()
Makes the LogoPanel for the application's main frame. This method is in this class to make it easier to define versions that have a different logo panel.

addTestMenuItems

protected void addTestMenuItems()
Called when the main frame is set up to add items to the frame menu bar's "Test" menu. This method is in this class, rather than in the frame class, to make it easier to define versions that have different test items.

addTestMenuItems

protected void addTestMenuItems(java.lang.String filename)

reset

public void reset()
Called to restore the initial state.

handleNewIssue

public void handleNewIssue(Issue issue)
Handles new issues from external sources.
Overrides:
handleNewIssue in class IXAgent

handleNewActivity

public void handleNewActivity(Activity activity)
Handles new activities from external sources.
Overrides:
handleNewActivity in class IXAgent

handleNewConstraint

public void handleNewConstraint(Constraint constraint)
Handles new constraints from external sources.
Overrides:
handleNewConstraint in class IXAgent

handleNewReport

public void handleNewReport(Report report)
Handles new reports from external sources.
Overrides:
handleNewReport in class IXAgent

handleNewChatMessage

public void handleNewChatMessage(ChatMessage message)
Handles new chat messages.
Overrides:
handleNewChatMessage in class IXAgent

addIssueHandlers

protected void addIssueHandlers()
Install any built-in issue and activity handlers.

addForwardingHandler

public void addForwardingHandler(java.lang.String verb,
                                 AgentRelationship rel,
                                 boolean reportBack)