SOMA.agent.mobility
Class AgentManager

java.lang.Object
  |
  +--SOMA.agent.mobility.AgentManager

public class AgentManager
extends java.lang.Object

Gestore degli agenti di un place.

Author:
Livio Profiri

Field Summary
 AgentWorkerStore agentWorkerStore
          Memorizza i worker degli agenti.
 
Constructor Summary
AgentManager(Environment env)
          Costruttore.
 
Method Summary
 AgentID createAgent(java.lang.String agentName, java.lang.Object argument)
          Creazione di un agente.
 AgentID newAgentID()
          Creazione di un nuovo AgentID.
 AgentID startAgent(Agent agent)
          Avvio di un agente.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

agentWorkerStore

public AgentWorkerStore agentWorkerStore
Memorizza i worker degli agenti.
Constructor Detail

AgentManager

public AgentManager(Environment env)
Costruttore.
Parameters:
env - L'environment del place.
Method Detail

createAgent

public AgentID createAgent(java.lang.String agentName,
                           java.lang.Object argument)
Creazione di un agente.
Parameters:
agentName - Nome dell'agente.
argument - Parametro di inizializxzazione, vedi Agent.putArgument( Object obj ).

startAgent

public AgentID startAgent(Agent agent)
Avvio di un agente.

newAgentID

public AgentID newAgentID()
Creazione di un nuovo AgentID.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object