org.semwebcentral.sweetrules.infrastructure
Interface ISweetInferenceEngine

All Known Implementing Classes:
AbstractSweetInferenceEngine

public interface ISweetInferenceEngine

The interface of an inference engine which executes tasks like query answering, loading a kb etc

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

Method Summary
 ISweetIEDescriptor getIEDescriptor()
          Returns the descriptor of the inference engine
 java.lang.Object runTask(ISweetInferenceEngineTask task)
          Executes the given task and returns the results
 void setIEDescriptor(ISweetIEDescriptor ieDescriptor)
          Sets the descriptor of the inference engine
 

Method Detail

runTask

public java.lang.Object runTask(ISweetInferenceEngineTask task)
                         throws SweetInferenceEngineException
Executes the given task and returns the results

Parameters:
task - The task to be executed
Returns:
The result of executing the task
Throws:
InferenceEngingException - if any error occurs during inferencing
SweetInferenceEngineException

getIEDescriptor

public ISweetIEDescriptor getIEDescriptor()
Returns the descriptor of the inference engine

Returns:
The descriptor of the inference engine

setIEDescriptor

public void setIEDescriptor(ISweetIEDescriptor ieDescriptor)
Sets the descriptor of the inference engine

Parameters:
ieDescriptor - The descriptor of the inference engine