ZAgent.Creator, ZAgent.SelectorCreator, ZAgent.SimpleAgent, ZAgent.VerySimpleSelectorCreator
Constructor and Description |
---|
SimpleAgent(ZMQ.Socket pipe,
String lock)
Creates a new simple agent.
|
Modifier and Type | Method and Description |
---|---|
void |
nova()
Forcely destroys the Star.
|
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.
|
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()
ZAgent
public ZMsg recv()
ZAgent
public ZMsg recv(boolean wait)
ZAgent
public boolean send(ZMsg message)
ZAgent
public boolean send(String word)
ZAgent
public boolean send(String word, boolean more)
ZAgent
public boolean send(ZMsg msg, boolean destroy)
ZAgent
public ZMQ.Socket pipe()
ZAgent
Copyright © 2024. All rights reserved.