org.semwebcentral.sweetrules.infrastructure
Class AbstractSweetInferenceEngine

java.lang.Object
  extended byorg.semwebcentral.sweetrules.infrastructure.AbstractSweetInferenceEngine
All Implemented Interfaces:
ISweetInferenceEngine
Direct Known Subclasses:
SweetCR33Engine, SweetJenaEngine, SweetJessEngine, SweetXSBEngine

public abstract class AbstractSweetInferenceEngine
extends java.lang.Object
implements ISweetInferenceEngine

An abstract implementation of an inference engine

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

Field Summary
protected  ISweetIEDescriptor engineDescriptor
          The descriptor of the inference engine
 
Constructor Summary
AbstractSweetInferenceEngine(ISweetIEDescriptor descriptor)
          Constructor for the abstract inference engine
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

engineDescriptor

protected ISweetIEDescriptor engineDescriptor
The descriptor of the inference engine

Constructor Detail

AbstractSweetInferenceEngine

public AbstractSweetInferenceEngine(ISweetIEDescriptor descriptor)
Constructor for the abstract inference engine

Parameters:
descriptor - The descriptor of the engine
Method Detail

runTask

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

Specified by:
runTask in interface ISweetInferenceEngine
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

Specified by:
getIEDescriptor in interface ISweetInferenceEngine
Returns:
The descriptor of the inference engine

setIEDescriptor

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

Specified by:
setIEDescriptor in interface ISweetInferenceEngine
Parameters:
ieDescriptor - The descriptor of the inference engine