Starting up a DECAF Agent

The Agent class is the core of the agent. It can be started with a graphical interface or a command line interface.

Graphical Interface

The graphical interface will start automatically if no options are provided on the command line. If you wish to use command line options and have the graphical interface then you should include -gui on the command line as well the other options. The normal intialization window will be shown, but the command line values will be supstituted for the defaults.

The Intialization Window contains all the options provided on the command line. Of noticeable difference is that logging is an option in the gui now where as before it was not. There are also some other additions to both interfaces and they are described below.

Once the information is entered, press the Start Agent Button to read in the given plan file and bring the internal code. Then press the Register Button to register with the ANS and run the agents startup routine.

The Agent Window

The window that comes with the graphical interface offers a variety of ways to interact with that agent and the rest of the agent network. It also provides lots of information to the user through the message areas.

The incoming and outgoing message areas show just that, the incoming and outgoing KQML messages. This is the first place to look if problems arise in agent communication. The debug area displays all the messages coming from the various parts of DECAF. These can be turned on and off with the Debug menu.

The menus in the Agent window allow access to several interesting features.

Command Line Options

The complete list of command line options is: java Agent [ -agn <agent name> ] [ -agh <agent host> ] [ -agp <agent port>] [ -anh <ANS host> ] [ -anp <ANS port> ] [ -p <plan file> ] [ -l <log file> ] [ -ara <ara name> ] [-gui ]