kaos.core.csi.extension
Interface KAoSExtensionComponentManager

All Known Subinterfaces:
EnforcerManager, InstanceClassifierManager, StateMonitorManager
All Known Implementing Classes:
EventsHistoryManager, kaos.core.csi.extension.KAoSExtensionComponentManagerImpl, ObligationMonitorManager

public interface KAoSExtensionComponentManager

This interface is exposed by the KAoS to the outside system allowing them to register with KAoS specific components extending default KAoS functionality. This interface is implemented by different classes providing storage and management for specific kinds of extension components. $Revision: 1.4 $


Method Summary
 void changeComponentEnabledStatus(java.lang.String associatedOntType, boolean state)
          Changes the 'enabled' status of the given component
 boolean deregisterComponent(java.lang.String componentName)
          Deregister a specific KAoSExtensionComponent from KAoS
 java.util.List<KAoSExtensionComponent> getAllKAoSExtensionComponents()
          Get all components contained in this repository.
 KAoSExtensionComponent getComponent(java.lang.String associatedOntType, ServiceProperties props)
          Obtain a specific for the given manager kind of extension component associated with the provided ontology attribute.
 boolean getComponentEnabledStatus(java.lang.String associatedOntType)
          Get the 'enabled' status of the given component
 java.lang.String getRepositoryManagerType()
          Get the repository type of this manager.
 java.util.Map<java.lang.String,java.lang.String> getRepositoryTableInformation()
          This method returns the concepts names and their corresponding component names in a map.
 boolean registerComponent(KAoSExtensionComponent extensionComponent)
          Register a specific KAoSExtensionComponent with KAoS
 void removeAllKAoSExtensionComponents()
          Remove all components contained in this repository.
 

Method Detail

getRepositoryManagerType

java.lang.String getRepositoryManagerType()
Get the repository type of this manager. e.g. if a Classifier or Enabler etc.

Returns:
A String specifying the type of this manager.

registerComponent

boolean registerComponent(KAoSExtensionComponent extensionComponent)
Register a specific KAoSExtensionComponent with KAoS

Parameters:
extensionComponent - KAoSExtensionComponent that is being registered
Returns:
boolean indicating whether the component was successfully registered

deregisterComponent

boolean deregisterComponent(java.lang.String componentName)
Deregister a specific KAoSExtensionComponent from KAoS

Parameters:
componentName - name of the component
Returns:
boolean indicating whether the component was successfully deregistered

getComponent

KAoSExtensionComponent getComponent(java.lang.String associatedOntType,
                                    ServiceProperties props)
Obtain a specific for the given manager kind of extension component associated with the provided ontology attribute. The component was either created during the bootstrap process, was registered previously using the registerComponent method, or, if possible, will be created on the fly.

Parameters:
associatedOntType - string specifying the ontology attribute, for which a component is requested
props - ServiceProperties (optionally) specifying additional ontological properties of the component.
Throws:
KAoSExtensionComponentInitializationException - if the

changeComponentEnabledStatus

void changeComponentEnabledStatus(java.lang.String associatedOntType,
                                  boolean state)
Changes the 'enabled' status of the given component

Parameters:
associatedOntType - A String indicating the ontology type associated with that component.
state - A boolean parameter to which the status would change

getComponentEnabledStatus

boolean getComponentEnabledStatus(java.lang.String associatedOntType)
Get the 'enabled' status of the given component

Parameters:
associatedOntType - A String indicating the ontology type associated with that component.

getAllKAoSExtensionComponents

java.util.List<KAoSExtensionComponent> getAllKAoSExtensionComponents()
Get all components contained in this repository.

Returns:
A Vector containing all components.

removeAllKAoSExtensionComponents

void removeAllKAoSExtensionComponents()
Remove all components contained in this repository.


getRepositoryTableInformation

java.util.Map<java.lang.String,java.lang.String> getRepositoryTableInformation()
This method returns the concepts names and their corresponding component names in a map. The keys in this table are Strings specifying concept names and values are Strings specifying corresponding component names



Copyright © 2006 IHMC All Rights Reserved.