| org.cougaar.core.plugin.ComponentPlugin org.cougaar.pizza.plugin.ProcessOrderPlugin
ProcessOrderPlugin | public class ProcessOrderPlugin extends ComponentPlugin (Code) | | This plugin processes incoming pizza Order Tasks at the pizza provider
agents. It matches the topping requirements (PropertyGroups on the
DirectObject of the Task) with the capabilities of its Kitchen
(again, PropertyGroups on the Asset) to decide if it can
handle the Order.
|
Method Summary | |
protected void | execute() Process the subscriptions: match topping PG on Order Tasks with
the PGs on the KitchenAsset, and if the Kitchen has the needed PGs,
respond with SUCCESS. | public void | load() Set up our services and our factory. | public void | setDomainService(DomainService aDomainService) Used by the binding utility through introspection to set my DomainService
Services that are required for plugin usage should be set through reflection instead of explicitly
getting each service from your ServiceBroker in the load method. | protected void | setupSubscriptions() |
execute | protected void execute()(Code) | | Process the subscriptions: match topping PG on Order Tasks with
the PGs on the KitchenAsset, and if the Kitchen has the needed PGs,
respond with SUCCESS.
|
load | public void load()(Code) | | Set up our services and our factory.
|
setDomainService | public void setDomainService(DomainService aDomainService)(Code) | | Used by the binding utility through introspection to set my DomainService
Services that are required for plugin usage should be set through reflection instead of explicitly
getting each service from your ServiceBroker in the load method. The setter methods are called after
the component is constructed but before the state methods such as initialize, load, setupSubscriptions, etc.
If the service is not available at that time the component will be unloaded.
|
setupSubscriptions | protected void setupSubscriptions()(Code) | | Create the subscriptions to my Order Tasks, PlanElements for those, and Kitchen Asset
|
|
|