org.cougaar.tutorial.booksonline.common
Class BOLComponentPlugin

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
All Implemented Interfaces:
org.cougaar.core.blackboard.BlackboardClient, org.cougaar.core.component.Component, org.cougaar.util.GenericStateModel, org.cougaar.core.plugin.PluginBase
Direct Known Subclasses:
CreditVerificationPlugin, OrderManagerExpanderPlugin, PaymentAllocatorPlugin, PublisherAccessorPlugin, PublisherAllocatorPlugin, PublisherExecutionPlugin, PublisherExpanderPlugin, PublisherPrinterAggregatorPlugin, PublisherPrinterPlugin, RequestResupplyPlugin, ShipperAggregatorPlugin, ShipperAssessorPlugin, ShipperExpanderPlugin, WarehouseAllocatorPlugin, WarehouseExecutionPlugin, WarehouseExpanderPlugin

public abstract class BOLComponentPlugin
extends org.cougaar.core.plugin.ComponentPlugin

A Component Plugin with some utility methods added for convenience

Author:
ttschampel, mabrams

Nested Class Summary
 class BOLComponentPlugin.PluginAlarm
          Implementation of an Alarm
 
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
BOLComponentPlugin()
           
 
Method Summary
 org.cougaar.core.service.DomainService getDomainService()
          Get DomainService
 void setDomainService(org.cougaar.core.service.DomainService service)
          Set Domain Service
 void setLoggingService(org.cougaar.core.service.LoggingService service)
          Set LoggingService
 void setUIDService(org.cougaar.core.service.UIDService service)
          Set UID Service
 org.cougaar.core.agent.service.alarm.Alarm wakeAfter(long delayTime)
          Convenience method to specify period of time to wait before stimulating plugin (based on COUGAAR scenario time).
 
Methods inherited from class org.cougaar.core.blackboard.BlackboardClientComponent
currentTimeMillis, getBlackboardClientName, getParameter, getParameters, halt, initialize, load, 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, load, resume, start, stop, suspend, unload
 

Constructor Detail

BOLComponentPlugin

public BOLComponentPlugin()
Method Detail

setUIDService

public void setUIDService(org.cougaar.core.service.UIDService service)
Set UID Service

Parameters:
service - UIDService

setLoggingService

public void setLoggingService(org.cougaar.core.service.LoggingService service)
Set LoggingService

Parameters:
service - LoggingService

setDomainService

public void setDomainService(org.cougaar.core.service.DomainService service)
Set Domain Service

Parameters:
service - DomainService

getDomainService

public org.cougaar.core.service.DomainService getDomainService()
Get DomainService

Returns:
DomainService

wakeAfter

public org.cougaar.core.agent.service.alarm.Alarm wakeAfter(long delayTime)
Convenience method to specify period of time to wait before stimulating plugin (based on COUGAAR scenario time). Note that this facility is not appropriate to use for load-balancing purposes, as scenario time is discontinuous and may even stop.

Parameters:
delayTime - (Scenario) milliseconds to wait before waking.
Returns:
Alarm