Wednesday, 1 October 2008

FAtiMA - Server For Launching Agents

Agent minds can now be launched by an independent java server application.

This allows agents to be runned on a separate computer. Also it greatly improves the "debug" of the minds because the server prints, in it's console window, everything the minds are printing.

The configuration parameters for this application are defined in the Orient_Profile.xml (located in the runDir folder). The jar and respective batch file are also located in the runDir folder. Their names are: FAtiMA-AgentLauncherServer.jar and FAtiMA-AgentLauncher.bat

I'll give a quick explanation of these parameters:

1. UseRemoteAgentLauncher [true,false] - setting this to false means the ORIENT GUI will bypass the server application an launch itself the agents (just like before).

2. OrientIP - this is the ip of the computer running the graphical application. (WARNING: this IP is used by the Server application. So if you set the agents to run on another computer don't use localhost because then the server will say to the agents to connect to localhost and not to the computer running the GUI).

3. RemoteAgentLaucherServerIP - this is the ip of the computer running the server application.

4. RemoteAgentLaucherServerPort - this is the port where the graphical application will communicate with the server application. (WARNING: if you set it to a different port you have to change it also in the server application.)

5. DebugAgents [true,false] - a true value means the agents will launch the java graphical application that displays their needs, goals, KB, etc.

IMPORTANT NOTES:

Don't forget to launch the server application before running ORIENT otherwise it will freeze.

If you want to run the agents on another computer you have to copy both the jar and batch file MUST ALSO the data folder, otherwise agents will give an error saying they can't find the goals and actions xml files.


No comments: