All Packages Class Hierarchy This Package Previous Next Index
Class AgentSystem.AgentSystem
java.lang.Object
|
+----AgentSystem.AgentSystem
- public class AgentSystem
- extends Object
Classe di interazione tra sistema ed agenti.
Sono resi disponibili tutti i servizi di base necessari all'agente,
in particolare provvede alla interfaccia per la mobilita'.
- Version:
- 10/12/1997
- Author:
- Fabio Tarantino
-
Monitor
-
-
AgentSystem()
-
-
createAgent(String, Object)
-
Crea nuovo agente dalla classe cl ad associa args obj
Restituisce AgentID dell'Agente
-
createAgent(String, Object, boolean)
-
Crea nuovo agente dalla classe cl ad associa args obj
Restituisce AgentID dell'Agente potendo specificare se e' o no
Traceable.
-
getAllDomain()
- Ritorna la lista di tutti i siti del dominio ed il nome dei place
di default.
-
getCurrentLocation()
- Ritorna la attuale posizione dell'Agente.
-
getNotTraceableAgentsNumber()
-
-
getPersistentObject(ObjectID)
-
Cerca nel DB oggetto persistente
-
getPlaceNumber()
-
-
getTraceableAgentsNumber()
-
-
go(AgentID, DomainName, NodeName, String)
- Muove Agente identificato da AgentID aid.
-
go(AgentID, DomainName, String)
- Muove Agente identificato da AgentID aid.
-
go(AgentID, NodeName, String)
- Muove Agente identificato da AgentID aid.
-
go(AgentID, PlaceName, String)
-
-
go(AgentID, String, String)
- Muove Agente identificato da AgentID aid.
-
isActive(NodeName)
- Verifica se una specifico nodo e' attivo.
-
kill(AgentID)
- Uccide Agente caratterizzato da AgentID
-
removePersistentObject(ObjectID)
-
Rimuove oggetto persistente dal DB
-
storePersistentObject(Object)
-
Salva nel DB oggetto che deve rimanere persistente
Monitor
public static Monitor Monitor
AgentSystem
public AgentSystem()
go
public static synchronized void go(AgentID agid,
NodeName n,
String metodo) throws CantGoException
- Muove Agente identificato da AgentID aid. La specifica della destinazione
e' il nodo in forma di NodeName. String metodo e' il metodo che verra'
eseguito na volta arrivato a destinazione.
go
public static synchronized void go(AgentID agid,
String nodo,
String metodo) throws CantGoException
- Muove Agente identificato da AgentID aid. La specifica della destinazione
e' il nodo in forma di String. String metodo e' il metodo che verra'
eseguito na volta arrivato a destinazione.
go
public static synchronized void go(AgentID agid,
PlaceName p,
String metodo) throws CantGoException
go
public static synchronized void go(AgentID agid,
DomainName d,
String metodo) throws CantGoException
- Muove Agente identificato da AgentID aid. La specifica della destinazione
e' il Dominio DomainName d (il nodo viene preso quello di Default).
String metodo e' il metodo che verra'
eseguito na volta arrivato a destinazione
go
public static synchronized void go(AgentID agid,
DomainName d,
NodeName n,
String metodo) throws CantGoException
- Muove Agente identificato da AgentID aid. La specifica della destinazione
e' il Dominio DomainName d ed il nodo e' NodeName n.
String metodo e' il metodo che verra'
eseguito na volta arrivato a destinazione
kill
public static synchronized void kill(AgentID id)
- Uccide Agente caratterizzato da AgentID
createAgent
public static synchronized AgentID createAgent(String cl,
Object obj)
- Crea nuovo agente dalla classe cl ad associa args obj
Restituisce AgentID dell'Agente
createAgent
public static synchronized AgentID createAgent(String cl,
Object obj,
boolean s)
- Crea nuovo agente dalla classe cl ad associa args obj
Restituisce AgentID dell'Agente potendo specificare se e' o no
Traceable.
storePersistentObject
public static ObjectID storePersistentObject(Object o)
- Salva nel DB oggetto che deve rimanere persistente
getPersistentObject
public static Object getPersistentObject(ObjectID oid)
- Cerca nel DB oggetto persistente
removePersistentObject
public static void removePersistentObject(ObjectID oid)
- Rimuove oggetto persistente dal DB
getAllDomain
public static synchronized Location[] getAllDomain()
- Ritorna la lista di tutti i siti del dominio ed il nome dei place
di default.
getCurrentLocation
public static Location getCurrentLocation()
- Ritorna la attuale posizione dell'Agente.
isActive
public static synchronized boolean isActive(NodeName n)
- Verifica se una specifico nodo e' attivo.
getNotTraceableAgentsNumber
public static int getNotTraceableAgentsNumber()
getTraceableAgentsNumber
public static int getTraceableAgentsNumber()
getPlaceNumber
public static int getPlaceNumber()
All Packages Class Hierarchy This Package Previous Next Index