|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cougaar.util.GenericStateModelAdapter
org.cougaar.core.blackboard.BlackboardClientComponent
org.cougaar.core.plugin.ComponentPlugin
org.cougaar.pizza.plugin.ProcessOrderPlugin
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.
| Nested Class Summary |
| Nested classes inherited from class org.cougaar.core.blackboard.BlackboardClient |
org.cougaar.core.blackboard.BlackboardClient.Local |
| Field Summary |
| Fields inherited from class org.cougaar.core.blackboard.BlackboardClientComponent |
agentId, agentIdentificationService, alarmService, blackboard, blackboardClientName |
| Fields inherited from interface org.cougaar.core.plugin.PluginBase |
INSERTION_POINT |
| Fields inherited from interface org.cougaar.util.GenericStateModel |
ACTIVE, IDLE, LOADED, UNINITIALIZED, UNLOADED |
| Fields inherited from interface org.cougaar.core.blackboard.BlackboardClient |
current |
| Constructor Summary | |
ProcessOrderPlugin()
|
|
| 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. |
void |
load()
Set up our services and our factory. |
void |
setDomainService(org.cougaar.core.service.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()
Create the subscriptions to my Order Tasks, PlanElements for those, and Kitchen Asset |
| Methods inherited from class org.cougaar.core.plugin.ComponentPlugin |
getConfigFinder |
| Methods inherited from class org.cougaar.core.blackboard.BlackboardClientComponent |
currentTimeMillis, cycle, getAgentIdentifier, getAlarmService, getBindingSite, getBlackboardClientName, getBlackboardService, getMessageAddress, getParameter, getParameters, getServiceBroker, halt, precycle, requestCycle, resume, setAgentIdentificationService, setAlarmService, setBindingSite, setBlackboardService, setParameter, setSchedulerService, setServiceBroker, setSuicideService, shouldExecute, start, stop, suspend, toString, unload, wasAwakened |
| Methods inherited from class org.cougaar.util.GenericStateModelAdapter |
getModelState, initialize, transitState |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.cougaar.util.GenericStateModel |
getModelState, halt, initialize, resume, start, stop, suspend, unload |
| Constructor Detail |
public ProcessOrderPlugin()
| Method Detail |
public void setDomainService(org.cougaar.core.service.DomainService aDomainService)
public void load()
protected void setupSubscriptions()
protected void execute()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||