| org.cougaar.core.plugin.ComponentPlugin org.cougaar.core.adaptivity.OperatingModeServiceProvider
OperatingModeServiceProvider | public class OperatingModeServiceProvider extends ComponentPlugin implements ServiceProvider(Code) | | This Plugin serves as an OperatingModeServiceProvider. It
subscribes to
OperatingMode s using a subscription allowing
immediate access to individual OperatingModes by name. Provides
OperatingModeService to components needing name-based access to
OperatingModes.
|
Method Summary | |
public void | execute() Standard execute method does nothing. | public Object | getService(ServiceBroker sb, Object requestor, Class serviceClass) Gets (creates) an implementation of the OperatingModeService. | public void | load() Override base class method to register our service with the
service broker. | public void | releaseService(ServiceBroker sb, Object requestor, Class serviceClass, Object svc) Releases an implementation of the OperatingModeService. | public void | setupSubscriptions() Standard setupSubscriptions subscribes to all OperatingModes. | public void | unload() Override base class method to unregister our service with the
service broker. |
execute | public void execute()(Code) | | Standard execute method does nothing. Our subscription
automatically maintains the information of interest in omSet
where it is referenced directly by the service API.
|
getService | public Object getService(ServiceBroker sb, Object requestor, Class serviceClass)(Code) | | Gets (creates) an implementation of the OperatingModeService.
This is part of our implementation of the ServiceProvider API.
|
load | public void load()(Code) | | Override base class method to register our service with the
service broker.
|
releaseService | public void releaseService(ServiceBroker sb, Object requestor, Class serviceClass, Object svc)(Code) | | Releases an implementation of the OperatingModeService.
This is part of our implementation of the ServiceProvider API.
|
setupSubscriptions | public void setupSubscriptions()(Code) | | Standard setupSubscriptions subscribes to all OperatingModes.
|
unload | public void unload()(Code) | | Override base class method to unregister our service with the
service broker.
|
|
|