next up previous contents
Next: Creation of an Agent Up: AgentSystem Class Previous: The Output Framework   Contents

Creation of a System Agent

Some of the most important methods are the functions to maintain Agents and System Agents. Although the System Agents and the normal Agents have a common base they are created very differently. A System Agent has to be loaded from the CLASSPATH, it cannot be loaded over the net. One can think about letting them be loaded from another, trusted Agent System. A System Agent is loaded from the class given by the (String) parameter name of the method. The System creates first a new instance of the class and then a new AgentID for the System Agent. The System Agent should still not really execute although its main constructor has been called already. The next step is to create a SysAgentHelper and then it can be initialized and started (by calling initAgent() and startAgent()). Now the System Agent should be ready to do its work. It is now put into the sysagents Hashtable. At last the System tells every Admin System Agent that there has been created a new System Agent to keep their lists of System Agents up to date.

For details which is done at initializing and starting of a System Agent, see Section [*].


next up previous contents
Next: Creation of an Agent Up: AgentSystem Class Previous: The Output Framework   Contents
Thomas Letsch 2001-02-21