org.semwebcentral.sweetrules.infrastructure
Interface ISweetComponentRepositoryManager

All Known Implementing Classes:
SweetComponentRepositoryManager

public interface ISweetComponentRepositoryManager


The component manager class to manage various components like inference engines, translator etc

Modified on: Aug 26, 2004, 4:44:32 PM

Author:
Shashidhara K Ganjugunte, Dr. Benjamin Grosof, Dr. Said Tabet, Chitravanu Neogy

Method Summary
 void addComponent(java.lang.Object component, boolean overWrite)
          This adds a component belonging to the specified componentRepositoryClass
 java.lang.Object getComponent(java.lang.Object componentDescriptor)
          Returns the component specified by the descriptor
 java.lang.Object[] searchCompositeComponent(java.lang.Object componentDescriptor)
          Performs a search on the components and returns the match This considers transitive closure
 java.lang.Object[] searchSimpleComponent(java.lang.Object componentDescriptor)
          Performs a search on the components and returns the match This does not consider transitive closure
 

Method Detail

addComponent

public void addComponent(java.lang.Object component,
                         boolean overWrite)
                  throws SweetException
This adds a component belonging to the specified componentRepositoryClass

Parameters:
component - The component to be added
overWrite - If true it specifies that if the object exists then it should be overWritten
Throws:
SweetException - If either component/componentRepository class is unsupported or
if overWrite is false and the object exists

getComponent

public java.lang.Object getComponent(java.lang.Object componentDescriptor)
                              throws SweetException
Returns the component specified by the descriptor

Parameters:
componentDescriptor - The descriptor of the component desired
Returns:
The desired component if it exists null otherwise
Throws:
SweetException - if the descriptor type is unknown

searchSimpleComponent

public java.lang.Object[] searchSimpleComponent(java.lang.Object componentDescriptor)
                                         throws SweetException
Performs a search on the components and returns the match This does not consider transitive closure

Parameters:
componentDescriptor - The descriptor of the component to be searched
Returns:
The component(s) matching the search
Throws:
SweetException

searchCompositeComponent

public java.lang.Object[] searchCompositeComponent(java.lang.Object componentDescriptor)
                                            throws SweetException
Performs a search on the components and returns the match This considers transitive closure

Parameters:
componentDescriptor - The descriptor of the component to be searched
Returns:
The component(s) matching the search
Throws:
SweetException