| org.cougaar.core.plugin.ComponentPlugin org.cougaar.pizza.plugin.RSVPPlugin
RSVPPlugin | public class RSVPPlugin extends ComponentPlugin (Code) | | Reply to the RSVP relay invitation with the kind of pizza we like.
Makes a new RSVPReply and sets the name of
the guest (this agent) and their pizza preference, based on the PGs on the self Entity.
Put the RSVPReply on the relay and sends the response back.
|
Method Summary | |
protected void | execute() Watch for incoming RSVPRelays. | protected Entity | getSelfEntity() Do a blackboard query to get the self Entity. | public void | load() | protected void | setupSubscriptions() We have one subscription, to the relays (the invitation) we expect to
get. |
execute | protected void execute()(Code) | | Watch for incoming RSVPRelays. Then search our local Entity's topping PGs,
and set that preference on a response to the relay.
|
getSelfEntity | protected Entity getSelfEntity()(Code) | | Do a blackboard query to get the self Entity.
Looks for entities that have the same item id as my agent id.
self Entity, null if not found |
load | public void load()(Code) | | Set up the services we need - logging service
|
setupSubscriptions | protected void setupSubscriptions()(Code) | | We have one subscription, to the relays (the invitation) we expect to
get.
|
|
|