|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface is used as a service from
examples.communication.Launcher
in order to get information (error or identification) from the agents of type
examples.communication.Agent
.
Launcher
Field Summary | |
static String |
PUBLISH_KEY
The key under wich this service is going to be published. |
Method Summary | |
void |
reportError(String nickName,
Throwable throwable)
When an agent throws an exception(error) it should report it to the others using its nickname and the exception object(error). |
boolean |
reportName(String nickName,
String implicitName,
String servicePath,
int type)
When an agent is created it informs the launcher for his implicit name, nickname, the path under which it has published its AgentService interface
and its type(Sender, Receiver or Transceiver). |
Field Detail |
public static final String PUBLISH_KEY
Method Detail |
public void reportError(String nickName, Throwable throwable)
nickName
- the nickname of the agent which throws an
exception
throwable the Throwable
object.throwable
- DOCUMENT ME!public boolean reportName(String nickName, String implicitName, String servicePath, int type)
AgentService
interface
and its type(Sender, Receiver or Transceiver).
nickName
- the String
representation
of the nickname of the agent.
implicitName the String
representation
of the implicit name of the agent.
servicePath the String
representation
of the path under which the agent has
published its AgentService
.
type 1 = SENDER
2 = RECEIVER
3 = TRANSCEIVERimplicitName
- DOCUMENT ME!servicePath
- DOCUMENT ME!type
- DOCUMENT ME!
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |