| org.cougaar.core.relay.SimpleRelay
All known Subclasses: org.cougaar.core.blackboard.BlackboardAlertRelay, org.cougaar.core.relay.SimpleRelayBase,
SimpleRelay | public interface SimpleRelay extends UniqueObject(Code) | | A blackboard object API to send a query object to a remote agent,
which can optionally reply back to the sender.
Multiple rounds of query/reply are supported.
See Also: SimpleRelaySource See Also: source-side relay implementation |
getReply | Object getReply()(Code) | | Get the remote reply to the query, if any.
Blackboard interactions are asynchronous, so the plugin should
use a subscription to wake when the SimpleRelay has changed.
|
setQuery | void setQuery(Object query)(Code) | | Change the query, which is optional.
Only the agent who's address matches "getSource()" may call
this method, which must be followed by a blackboard
"publishChange" to resend the query to the target.
Note that the relay implementation may batch changes and
only send the latest change.
Parameters: query - the immutable query object |
setReply | void setReply(Object reply)(Code) | | Change the reply, which is optional.
Only the agent who's address matches "getTarget()" should call
this method, which must be followed by a blackboard
"publishChange" to resend the reply to the target.
Note that the relay implementation may batch changes and
only send the latest change.
Parameters: reply - the immutable reply object |
|
|