org.objectweb.mobilitools.smi.api
Interface AgentInfo
- All Known Implementing Classes:
- AgentEntry
- public interface AgentInfo
MobiliTools $Name: $, $Id: AgentInfo.java,v 1.1.1.1 2003/03/28 14:48:05 dillense Exp $
Interface for getting information about an agent.
getAgent
public MobileObject getAgent()
- Returns:
- the Java object reference to the agent.
getName
public Name getName()
- Returns:
- the agent's name.
getPlace
public java.lang.String getPlace()
- Returns:
- the name of the place where the agent resides.
isRunning
public boolean isRunning()
- Returns:
- true if the agent is currently active,
false if it is suspended.
toggleRunning
public boolean toggleRunning()
- Toggle the activity status between running and suspended.
- Returns:
- true if the agent is now running,
false if it is suspended.
getCodebase
public java.lang.String getCodebase()
- Returns:
- the codebase of the agent's classes.
getProperties
public java.util.Properties getProperties()
- Returns:
- the set of properties attached to the agent.
getData
public java.lang.Object getData()
- Returns:
- the opaque data set by an agency personality.