All Packages Class Hierarchy This Package Previous Next Index
Class AgentSystem.AgentManager
java.lang.Object
|
+----AgentSystem.AgentManager
- public class AgentManager
- extends Object
Questa classe statica ha il compito di gestire gli Agenti.
Associa ad ogni Agente creato un identificatore unico senza ipotesi di localite': AgentID
Ogni agente che arriva viene assegnato ad un Worker, un thread che ha il compito di eseguire
il codice associato all'agente a partire dal metodo desiderato.
- Version:
- 10/12/1997
- Author:
- Fabio Tarantino
-
Home
-
-
NnSAgents
-
-
NSAgents
-
-
AgentManager()
-
-
clone(AgentID)
-
-
create(Class, Object, boolean)
- Effettua la creazione di un Agente
-
dispose(AgentID)
-
-
get(AgentID)
- Restituisce il riferimento all'AgentID fornito
-
getPosition(AgentID)
-
-
init()
-
-
put(Agent)
- Aggiunge Agente in arrivo tra quelli che eseguono
-
setPosition(AgentID, String)
-
-
setPosition(AgentID, String, String)
-
Home
public static String Home
NSAgents
public static int NSAgents
NnSAgents
public static int NnSAgents
AgentManager
public AgentManager()
init
public static void init()
create
public static synchronized AgentID create(Class clagente,
Object arg,
boolean s)
- Effettua la creazione di un Agente
get
public static synchronized Agent get(AgentID aid)
- Restituisce il riferimento all'AgentID fornito
put
public static synchronized boolean put(Agent agent)
- Aggiunge Agente in arrivo tra quelli che eseguono
dispose
public static synchronized void dispose(AgentID aid)
clone
public static synchronized AgentID clone(AgentID aid)
getPosition
public static synchronized Location getPosition(AgentID aid)
setPosition
public static synchronized void setPosition(AgentID aid,
String pos,
String dom)
setPosition
public static synchronized void setPosition(AgentID aid,
String pos)
All Packages Class Hierarchy This Package Previous Next Index