org.cougaar.pizza.plugin
Class PizzaPrototypePlugin

java.lang.Object
  extended byorg.cougaar.util.GenericStateModelAdapter
      extended byorg.cougaar.core.blackboard.BlackboardClientComponent
          extended byorg.cougaar.core.plugin.ComponentPlugin
              extended byorg.cougaar.pizza.plugin.PizzaPrototypePlugin
All Implemented Interfaces:
org.cougaar.core.blackboard.BlackboardClient, org.cougaar.core.component.Component, org.cougaar.util.GenericStateModel, org.cougaar.core.plugin.PluginBase

public class PizzaPrototypePlugin
extends org.cougaar.core.plugin.ComponentPlugin

This Plugin creates and registers the Pizza Prototype asset. Other plugins will create instances of Pizza Assets as needed based on this prototype. This plugin does not require any inputs, it simply creates and registers the prototype. Note that this plugin will only run once since there are no inputs(subscriptions) that will cause it to run.


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
PizzaPrototypePlugin()
           
 
Method Summary
protected  void execute()
          No subscriptions to process so this method does nothing.
 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.
 void setPrototypeRegistryService(org.cougaar.planning.service.PrototypeRegistryService aPrototypeRegistryService)
          Used by the binding utility through introspection to set my PrototypeRegistryService
protected  void setupSubscriptions()
          Generally used to initalize plugin subscriptions.
 
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, load, 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, load, resume, start, stop, suspend, unload
 

Constructor Detail

PizzaPrototypePlugin

public PizzaPrototypePlugin()
Method Detail

setDomainService

public 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. 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.


setPrototypeRegistryService

public void setPrototypeRegistryService(org.cougaar.planning.service.PrototypeRegistryService aPrototypeRegistryService)
Used by the binding utility through introspection to set my PrototypeRegistryService


setupSubscriptions

protected void setupSubscriptions()
Generally used to initalize plugin subscriptions. But in this case, we will just use it to call our method that will create the prototype.


execute

protected void execute()
No subscriptions to process so this method does nothing.