| java.lang.Object org.cougaar.pizza.relay.RSVPRelayTarget
RSVPRelayTarget | public class RSVPRelayTarget implements Relay.Target,UniqueObject(Code) | | A target-side
Relay . It has a slot for the query (from the sender) and the
local response.
The target relay has just a source address, and no target address, so that the
relay won't be (re)propagated at the target agent.
An alternative would be to have the relay implement both source and
target interfaces, but this could lead to endless pinging in this case
where the target address is an ABA broadcast to all members of the
community (as in this pizza app).
In contrast,
org.cougaar.core.relay.SimpleRelayImpl which
implements both source and target.
|
Method Summary | |
public Object | getQuery() This is important so that if there are multiple relays, the RSVP
plugin can know which to examine. | public Object | getResponse() Used by the RelayLP to get the response to send back the the Relay sender. | public MessageAddress | getSource() Get Relay sender. | public UID | getUID() Implemented for UniqueObject interface. | public void | setResponse(Object response) Specify the reply to the invite. | public void | setUID(UID uid) Implemented for UniqueObject interface. | public String | toString() | public int | updateContent(Object newContent, Token token) Used by the RelayLP to update the query from the Relay sender. |
getQuery | public Object getQuery()(Code) | | This is important so that if there are multiple relays, the RSVP
plugin can know which to examine.
query - the type of invitation |
getResponse | public Object getResponse()(Code) | | Used by the RelayLP to get the response to send back the the Relay sender.
Relay.Target implementation
reply to relay |
getSource | public MessageAddress getSource()(Code) | | Get Relay sender.
Relay.Target implementation.
source (sender or inviter) address |
getUID | public UID getUID()(Code) | | Implemented for UniqueObject interface.
the UID of this UniqueObject. |
setResponse | public void setResponse(Object response)(Code) | | Specify the reply to the invite.
Parameters: response - - reply to relay (should be an RSVPReply object) |
setUID | public void setUID(UID uid)(Code) | | Implemented for UniqueObject interface.
Does nothing - not allowed to reset UID.
|
updateContent | public int updateContent(Object newContent, Token token)(Code) | | Used by the RelayLP to update the query from the Relay sender. Not used in our application.
Relay.Target implementation
Relay.NO_CHANGE - content doesn't need to be updated, only theresponse |
|
|