| org.cougaar.core.agent.AgentContainer
All known Subclasses: org.cougaar.core.agent.AgentManager,
AgentContainer | public interface AgentContainer (Code) | | The AgentContainer manages all agents on the node.
|
add | boolean add(Object o)(Code) | | Add a component to this agent container. Only certain components
are allowed using this method. In particular, agents cannot be
added.
|
containsAgent | boolean containsAgent(MessageAddress agentId)(Code) | | Equivalent to
(getAgentDescription(agentId) != null)
true if the agent is on the local node |
getAgentAddresses | Set getAgentAddresses()(Code) | | Equivalent to
getLocalAgentDescriptions().keySet()
a Set of all local agent MessageAddresses |
getAgentDescription | ComponentDescription getAgentDescription(MessageAddress agentId)(Code) | | Equivalent to
getLocalAgentDescriptions().get(agentId)
null if the agent is not on the local node,or the description is not known. |
getAgents | Map getAgents()(Code) | | Get an unmodifiable map of local agent MessageAddress to the
ComponentDescriptions.
a Map<MessageAddress><ComponentDescriptions>for the local agents |
remove | boolean remove(Object o)(Code) | | Remove component from this agent container. Only components added
with the add method can be removed this way. Agents cannot be
removed with this method.
|
removeAgent | void removeAgent(MessageAddress agentId)(Code) | | Remove an agent that's on the local node.
throws: RuntimeException - if the agent is not on thelocal node, or it can't be removed. |
|
|