springs.context
Class AgentInfos

java.lang.Object
  |
  +--springs.context.AgentInfos

public class AgentInfos
extends java.lang.Object

Information stored in a context about its agents.

Author:
Sergio Ilarri Artigas

Field Summary
private  java.util.Hashtable _infos
          Stores pairs .
 
Constructor Summary
AgentInfos()
           
 
Method Summary
 void add(springs.agent.SpringsAgent agent)
          Adds information about the given agent.
 springs.agent.SpringsAgent getAgent(java.lang.String agentName)
          Obtains the requested agent.
 springs.context.AgentInfo getInfo(java.lang.String agentName)
          Obtains the requested AgentInfo.
 void remove(java.lang.String agentName)
          Removes information about the given agent.
 int size()
          Gets the size.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_infos

private java.util.Hashtable _infos
Stores pairs .

See Also:
Hashtable
Constructor Detail

AgentInfos

public AgentInfos()
Method Detail

size

public int size()
Gets the size.

Returns:
the number of agents.

remove

public void remove(java.lang.String agentName)
Removes information about the given agent.

Parameters:
agentName - the agent name.
See Also:
String

add

public void add(springs.agent.SpringsAgent agent)
Adds information about the given agent.

Parameters:
agent - the agent name.
See Also:
SpringsAgent

getAgent

public springs.agent.SpringsAgent getAgent(java.lang.String agentName)
Obtains the requested agent.

Parameters:
agentName - the name of the agent.
Returns:
the agent.
See Also:
SpringsAgent, String

getInfo

public springs.context.AgentInfo getInfo(java.lang.String agentName)
Obtains the requested AgentInfo.

Parameters:
agentName - the name of the agent.
Returns:
the AgentInfo.
See Also:
AgentInfo, String