next up previous contents
Next: Structure of an Agent Up: Agents Previous: Agents   Contents

AgentIFace

The AgentIFace provides the public interface for basic access to an Agent. It provides the following methods:

initAgent
This method is called by the AgentLoader at the time of creating the Agent. It is only called once in the life time of an Agent.
startAgent
This method is called when the Agent is (re-) started. It is first called after the initAgent to start the just created Agent in the System. Then it is called when a stopped Agent is resumed or restarted again and when an Agent has traveled to another System and is there restarted again.
suspendAgent
Suspense or stops the Agent. This means the Agent should pause execution after calling this method.
terminateAgent
Terminates or concludes the Agent. This is called at the end of the lifetime of the Agent. A terminated Agent cannot be awakened anymore.
The AgentIFace is used for Agents as well as for System Agents. This provides both with the same interface to be controlled.


next up previous contents
Next: Structure of an Agent Up: Agents Previous: Agents   Contents
Thomas Letsch 2001-02-21