lime
Class LimeAgentMgr

java.lang.Object
  |
  +--lime.LimeAgentMgr
All Implemented Interfaces:
java.io.Serializable

public class LimeAgentMgr
extends java.lang.Object
implements java.io.Serializable

This class effectively decouples the agent object from the rest of the Lime system. Essentially, it contains all the information that Lime needs to properly manage the agent (e.g., its identifier, the list of tuple spaces, and so on) and, on the other hand, it provides the agent with the ability to properly engage and disengage within the system. This class should never be accessed or used directly by the Lime programmer. Only programmers trying to define their own notion of agent (e.g., those integrating a mobile agent system with Lime) should be interested in this class.

Version:
1.0 alpha
Author:
Amy L. Murphy, Gian Pietro Picco
See Also:
ILimeAgent, Serialized Form

Constructor Summary
LimeAgentMgr()
          Creates a new LimeAgentMgr, which contains a new identifier.
 
Method Summary
 void disengage()
          Disengages in a single atomic step all the tuple spaces managed through this object.
 void engage()
          Engages in a single atomic step all the tuple spaces managed through this object.
 AgentID getID()
          Returns the identifier associated to this LimeAgentMgr object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LimeAgentMgr

public LimeAgentMgr()
Creates a new LimeAgentMgr, which contains a new identifier.
Method Detail

getID

public AgentID getID()
Returns the identifier associated to this LimeAgentMgr object.

disengage

public void disengage()
Disengages in a single atomic step all the tuple spaces managed through this object.

engage

public void engage()
Engages in a single atomic step all the tuple spaces managed through this object.