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 is returned when loading an agent into the LimeServer.

Version:
8/22/2002
Author:
Amy L. Murphy, Gian Pietro Picco, Chien-Liang Fok
See Also:
Serialized Form

Constructor Summary
LimeAgentMgr()
          Creates the manager for a Lime Agent.
 
Method Summary
 void disengage()
          Disengages the agent by unsharing all shared tuple spaces.
 void engage()
          Engages the agent by sharing all tuple spaces that were shared when disengage was called.
 AgentID getID()
          Returns the AgentID of the agent that this manager manages.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LimeAgentMgr

public LimeAgentMgr()
Creates the manager for a Lime Agent. It creates a unique AgentID for the LimeAgent.
Method Detail

getID

public AgentID getID()
Returns the AgentID of the agent that this manager manages.
Returns:
the AgentID of the agent that this manager manages.

disengage

public void disengage()
Disengages the agent by unsharing all shared tuple spaces. If no tuple spaces are shared (e.g. the agent is already disengaged, then calling this method has no affect.

engage

public void engage()
Engages the agent by sharing all tuple spaces that were shared when disengage was called. If all of the tuple spaces are already shared, this method does not do anything.