org.cougaar.tutorial.booksonline.publisher
Class PublisherAllocatorPlugin

java.lang.Object
  extended byorg.cougaar.util.GenericStateModelAdapter
      extended byorg.cougaar.core.blackboard.BlackboardClientComponent
          extended byorg.cougaar.core.plugin.ComponentPlugin
              extended byorg.cougaar.tutorial.booksonline.common.BOLComponentPlugin
                  extended byorg.cougaar.tutorial.booksonline.publisher.PublisherAllocatorPlugin
All Implemented Interfaces:
org.cougaar.core.blackboard.BlackboardClient, org.cougaar.core.component.Component, org.cougaar.util.GenericStateModel, org.cougaar.core.plugin.PluginBase

public class PublisherAllocatorPlugin
extends BOLComponentPlugin

Subscribes to PackBooksAtWarehouse Tasks and tries to allocate the task to a Packer when enough books exist in the publisher's warehouse, otherwise the task is marked as failed through a Failed Disposition. Also, allocation results from the ShipBooks task are subscribed to, in order to copy the reported result to the estimated and observetd result slots of the plan element.

Version:
$Revision: 1.2 $
Author:
ttschampel

Nested Class Summary
 
Nested classes inherited from class org.cougaar.tutorial.booksonline.common.BOLComponentPlugin
BOLComponentPlugin.PluginAlarm
 
Nested classes inherited from class org.cougaar.core.blackboard.BlackboardClient
org.cougaar.core.blackboard.BlackboardClient.Local
 
Field Summary
 
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
PublisherAllocatorPlugin()
           
 
Method Summary
 void load()
          Load the plugin and setup prototype registry service and database service
 
Methods inherited from class org.cougaar.tutorial.booksonline.common.BOLComponentPlugin
getDomainService, setDomainService, setLoggingService, setUIDService, wakeAfter
 
Methods inherited from class org.cougaar.core.blackboard.BlackboardClientComponent
currentTimeMillis, getBlackboardClientName, getParameter, getParameters, halt, initialize, resume, setAgentIdentificationService, setAlarmService, setBindingSite, setBlackboardService, setParameter, setSchedulerService, start, stop, suspend, toString, unload
 
Methods inherited from class org.cougaar.util.GenericStateModelAdapter
getModelState
 
Methods inherited from class java.lang.Object
equals, 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

PublisherAllocatorPlugin

public PublisherAllocatorPlugin()
Method Detail

load

public void load()
Load the plugin and setup prototype registry service and database service