|
||||||||||
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.mdxr.MDXRAgent
public class MDXRAgent
Classe pour un agent sur le réseau identifié par un service ZeroConf (*M*ulticast-*D*NS) et accessible par *X*ML-*R*PC.
Field Summary | |
---|---|
private com.kallisys.zeroconf.MulticastDNSServer |
mMDNSServer
Référence sur le serveur mDNS. |
private com.kallisys.zeroconf.NetService |
mService
Référence sur le service ZeroConf. |
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 | |
---|---|
MDXRAgent(com.kallisys.zeroconf.MulticastDNSServer inMDNSServer,
com.kallisys.zeroconf.NetService inService)
Constructeur à partir d'un service ZeroConf et du serveur mDNS. |
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. |
static String |
getAgentClass(com.kallisys.zeroconf.NetService inService)
Accesseur sur la classe de l'agent à partir du service. |
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 com.kallisys.zeroconf.MulticastDNSServer mMDNSServer
private final com.kallisys.zeroconf.NetService mService
Constructor Detail |
---|
public MDXRAgent(com.kallisys.zeroconf.MulticastDNSServer inMDNSServer, com.kallisys.zeroconf.NetService inService)
inMDNSServer
- serveur mDNSinService
- service ZeroConfMethod Detail |
---|
public static String getAgentClass(com.kallisys.zeroconf.NetService inService)
inService
- service (dns).
public final String getAgentClass()
getAgentClass
in interface Agent
public final String getAgentName()
getAgentName
in interface Agent
public final 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 (problème réseau ou si
l'opération n'existe pas).public void executeAsync(String inOperationName, Map inParams)
executeAsync
in interface Agent
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 |