|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.lip6.sma.simulacion.server.AgentImpl
fr.lip6.sma.simulacion.server.adapter.AdapterAgent
public final class AdapterAgent
Classe de base pour un agent accessible via l'adaptateur. Gère les exécutions asynchrone.
Field Summary | |
---|---|
private Adapter |
mAdapter
Adaptateur. |
private String |
mClass
Classe de l'agent. |
private String |
mName
Nom de l'agent. |
Fields inherited from interface fr.lip6.sma.simulacion.server.Agent |
---|
AVATAR_PROPERTY_KEY, CLASS_KEY, IMPLEMENTATION_KEY, LOCATION_KEY, ONMAP_KEY, PROPERTIES_KEY, TYPE_PROPERTY_KEY |
Constructor Summary | |
---|---|
AdapterAgent(String inClass,
String inName,
Adapter inAdapter)
Constructeur à partir d'une classe, d'un nom et d'un adaptateur. |
Method Summary | |
---|---|
String |
execute(String inOperationName,
Map inParams)
Exécute une opération de manière synchrone. |
void |
executeAsync(String inOperationName,
Map inParams)
Exécute une opération de manière asynchrone sans retourner le résultat. |
String |
getAgentClass()
Accesseur sur la classe de l'agent. |
String |
getAgentName()
Accesseur sur le nom de l'agent. |
Methods inherited from class fr.lip6.sma.simulacion.server.AgentImpl |
---|
equals, hashCode |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface fr.lip6.sma.simulacion.server.Agent |
---|
equals, hashCode |
Field Detail |
---|
private final String mClass
private final String mName
private final Adapter mAdapter
Constructor Detail |
---|
public AdapterAgent(String inClass, String inName, Adapter inAdapter)
inClass
- classe de l'agent.inName
- nom de l'agent.inAdapter
- adaptateur.Method Detail |
---|
public String getAgentClass()
getAgentClass
in interface Agent
public String getAgentName()
getAgentName
in interface Agent
public String execute(String inOperationName, Map inParams) throws AgentException
execute
in interface Agent
inOperationName
- nom de l'opération à exécuter.inParams
- paramètres de l'opération.
AgentException
- si un problème est survenu.public void executeAsync(String inOperationName, Map inParams)
executeAsync
in interface Agent
executeAsync
in interface LocalAgent
inOperationName
- nom de l'opération à exécuter.inParams
- paramètres de l'opération.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |