next up previous contents
Next: Shutdown Up: AgentSystem Class Previous: Creation of an Agent   Contents

Controlling of (System) Agents

Like mentioned before the Agent and Sysagents are in their controlling very similar. Both have the same methods to suspend / resume / terminate them. This is a result of the basic AgentIFace. The biggest difference is that Agents are controlled through their AgentLoader which do not have System Agents. To keep the maintaining of both as simple as possible the following methods can handle Agent as well as System Agents. Both are referred as ``Agent'' in this section (and only in this section).

suspendAgent
Stops the Agent by calling its suspend method.
resumeAgent
(Re-)Starts the Agent which has do be stopped before. If an Agent is created its startAgent is called directly.
terminateAgent
Terminates a stopped Agent. If the (real) Agent was not stopped before, the Agent will be stopped by its AgentLoader before terminating it.
For a detailed description of what is done when suspending / resuming / terminating an Agent see the corresponding description of the Agent or the System Agent later in this document.


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