next up previous contents
Next: TAgentSys Up: Design and Structure Previous: Creating a TAgent   Contents

TAgents

The basic class of an Agent of this TAgents platform is called TAgent. It contains the following methods:

init()
Called one time in the life of the TAgent after it had been created.
start()
Called every time when the TAgent is started, first after being created and every time when traveled to another TAgentSite.
stop()
Is called when the TAgents has to stop executing.
conclude()
Should be called when terminating the TAgent.
dispatcher()
Is called to invoke the method given in the nextState variable. Should be called in the end of the start() method.
setTAgentHelper(TAgentHelper tagenthelper)
Is called by the System to give the TAgent its helper.



Thomas Letsch 2001-02-21