Set the execution parameters:
JAT agents require a set of execution parameters which can be provided via
either applet parameters or commandline arguments.
I have created a set of both C shell scripts and html pages for simplifying
the excution process. (If you want to execute the agents from the commandline
and are running this on either a 95, NT or MacOS machine you will have to
either manually specify the args or create appropriate scripts.) You will need
to modify both the html (contained in JAT_0.3/applet/) and script (contained in
JAT_0.3/scripts/) files to provide the correct values for these parameters.
(For Example 1, you will need to modify either the scripts or html pages for
the "Agent" and "ANS" agents. For Example 2, modifications must be made to the
files for the ServiceBroker, ServiceAgent, FDATAgent and ClientAgent agents).
The following parameters must be set:
URL location of the initialization file. This file contains a
set of KQML messages which are "sent" to the agent at startup, one of these
messages must contain the location of the Agent Name Server (ANS).
URL providing the remotely accessible location of the directory which contains
Java classes and general files which the agent will share with other
agents. This URL will be given to other agents so that they can retrieve
selected files. For agents executing on remote machines this URL must have the
http protocol; for agents all on the same host, the file protocol can be used.
Local path to the shared classes directory. This is used by the
agent to modify the contents of shared files. User must have write permission.
Local path to a directory in which the agent can cache acquired/generated
files. User must have write permission.
Determines if the agent will be executed with a graphical user interface.
These parameter can be set to false for agents which will be run as "daemon"
processes. (e.g. you want to run the ANS like a http server)
String name for the agent.
Local port for the SocketInterface's ServerSocket. If set to 0, an open port
will be automatically selected.