ZAgent.Creator, ZAgent.SelectorCreator, ZAgent.SimpleAgent| Constructor and Description |
|---|
SimpleAgent(ZMQ.Socket pipe,
String lock)
Creates a new simple agent.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the pipe.
|
ZMQ.Socket |
pipe()
Returns the socket used for communication.
|
ZMsg |
recv()
Receives a control message sent from the Plateau in the Corbeille.
|
ZMsg |
recv(boolean wait)
Receives a control message sent from the Plateau in the Corbeille.
|
ZMsg |
recv(int timeout)
Receives a control message sent from the Plateau in the Corbeille.
|
boolean |
send(String word)
Sends a control message from the Corbeille to the Plateau side.
|
boolean |
send(String word,
boolean more)
Sends a control message from the Corbeille to the Plateau side.
|
boolean |
send(ZMsg message)
Sends a control message from the Corbeille to the Plateau.
|
boolean |
send(ZMsg msg,
boolean destroy)
Sends a control message from Corbeille side to the Plateau side.
|
boolean |
sign()
Gives a sign if the distant Star is here.
|
public SimpleAgent(ZMQ.Socket pipe, String lock)
pipe - the pipe used to send control messages to the distant IStar.lock - the lock to use. If null, the locking mechanism is omitted.public boolean sign()
ZAgentpublic void close()
ZAgentpublic ZMsg recv()
ZAgentpublic ZMsg recv(int timeout)
ZAgentpublic ZMsg recv(boolean wait)
ZAgentpublic boolean send(ZMsg message)
ZAgentpublic boolean send(String word)
ZAgentpublic boolean send(String word, boolean more)
ZAgentpublic boolean send(ZMsg msg, boolean destroy)
ZAgentpublic ZMQ.Socket pipe()
ZAgentCopyright © 2020. All rights reserved.