kaos.policy.guard
Interface GuardRepositoryManager

All Known Implementing Classes:
EventsHistoryManager, GuardRepositoryManagerImpl

public interface GuardRepositoryManager

This interface defines methods to manage a repository.


Method Summary
 void changeComponentEnabledStatus(java.lang.String associatedOntType, boolean state)
          changes the 'enabled' status of the given component
 java.util.Vector getAllKAoSExtensionComponents()
          Get all components contained in this repository.
 boolean getComponentEnabledStatus(java.lang.String associatedOntType)
          get the 'enabled' status of the given component
 java.util.Vector getKAoSExtensionComponents(java.lang.String associatedOntType)
          Get the KAoSExtensionComponents object for the given type.
 java.lang.String getRepositoryManagerType()
          Get the repository type of this manager.
 java.util.Hashtable getRepositoryTableInformation()
          This method returns the concepts names and their corresponding component names in a Hashtable.
 void removeAllKAoSExtensionComponents()
          Remove all components contained in this repository.
 KAoSExtensionComponent removeKAoSExtensionComponent(java.lang.String associatedOntType)
          Remove from this repository the KAoSExtensionComponent specified by the given associatedOntType.
 void setKAoSExtensionComponent(java.lang.String associatedOntType, KAoSExtensionComponent extComp)
          Set KAoSExtensionComponent for the given ontology type.
 

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.

getKAoSExtensionComponents

java.util.Vector getKAoSExtensionComponents(java.lang.String associatedOntType)
Get the KAoSExtensionComponents object for the given type.

Parameters:
associatedOntType - A String indicating the ontology type associated with that component.
Returns:
A Vector containing KAoSExtensionComponents.

removeKAoSExtensionComponent

KAoSExtensionComponent removeKAoSExtensionComponent(java.lang.String associatedOntType)
Remove from this repository the KAoSExtensionComponent specified by the given associatedOntType.

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

setKAoSExtensionComponent

void setKAoSExtensionComponent(java.lang.String associatedOntType,
                               KAoSExtensionComponent extComp)
                               throws ComponentAlreadyPresentException
Set KAoSExtensionComponent for the given ontology type.

Parameters:
associatedOntType - A String indicating the ontology type associated with that component.
extComp - The KAoSExtensionComponent to be set for the given type.
Throws:
ComponentAlreadyPresentException

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.Vector 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.Hashtable getRepositoryTableInformation()
This method returns the concepts names and their corresponding component names in a Hashtable. The keys in this table are Strings specifying concept names and values are Strings specifying corresponding component names