|
||||||||||
| 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.http.HTTPAgent
public class HTTPAgent
Classe pour un agent accessible via un serveur HTTP.
| Field Summary | |
|---|---|
private String |
mClass
Classe de l'agent. |
private HTTPClient |
mClient
Client HTTP. |
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 | |
|---|---|
HTTPAgent(HTTPClient inHTTPClient,
String inClass,
String inName)
Constructeur à partir du client HTTP, d'une classe et d'un nom. |
|
| Method Summary | |
|---|---|
String |
execute(String inOperationName,
Map inParams)
Exécute une opération à travers le réseau. |
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 HTTPClient mClient
| Constructor Detail |
|---|
public HTTPAgent(HTTPClient inHTTPClient,
String inClass,
String inName)
inHTTPClient - client HTTP.inClass - classe de l'agent.inName - nom de l'agent.| Method Detail |
|---|
public final String getAgentClass()
getAgentClass in interface Agentpublic final String getAgentName()
getAgentName in interface Agent
public final String execute(String inOperationName,
Map inParams)
throws AgentException
execute in interface AgentinOperationName - nom de l'opération à exécuter.inParams - paramètres de l'opération.
AgentException - si un problème est survenu (problème réseau ou si
l'opération n'existe pas).
public void executeAsync(String inOperationName,
Map inParams)
throws AgentException
executeAsync in interface AgentinOperationName - nom de l'opération à exécuter.inParams - paramètres de l'opération.
AgentException - if a problem occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||