org.semwebcentral.sweetrules.infrastructure
Class AbstractSweetIERepository

java.lang.Object
  extended byorg.semwebcentral.sweetrules.infrastructure.AbstractSweetIERepository
All Implemented Interfaces:
ISweetIERepository
Direct Known Subclasses:
SweetIERepository

public abstract class AbstractSweetIERepository
extends java.lang.Object
implements ISweetIERepository

Abstract class for inference engine repository TODO:
(1) Make the matching of inference engines to deal with more than the name (2)

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

Field Summary
private  java.util.Vector availableIEs
          The Vector having all the inference engines
 
Constructor Summary
AbstractSweetIERepository()
          Constructor for the AbstractSweetIERepository
 
Method Summary
 void addInferenceEngine(ISweetInferenceEngine inferenceEngine)
          Adds an inference engine to the repository
 ISweetInferenceEngine[] getAllInferenceEngines()
          Returns all the available inference engines
 ISweetInferenceEngine getInferenceEngine(ISweetIEDescriptor descriptor)
          Gets an IIEDescriptor corresponding to a given name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

availableIEs

private java.util.Vector availableIEs
The Vector having all the inference engines

Constructor Detail

AbstractSweetIERepository

public AbstractSweetIERepository()
Constructor for the AbstractSweetIERepository

Method Detail

addInferenceEngine

public void addInferenceEngine(ISweetInferenceEngine inferenceEngine)
Description copied from interface: ISweetIERepository
Adds an inference engine to the repository

Specified by:
addInferenceEngine in interface ISweetIERepository
Parameters:
inferenceEngine - The inference engine to be added

getAllInferenceEngines

public ISweetInferenceEngine[] getAllInferenceEngines()
Description copied from interface: ISweetIERepository
Returns all the available inference engines

Specified by:
getAllInferenceEngines in interface ISweetIERepository
Returns:
All the available inference engines

getInferenceEngine

public ISweetInferenceEngine getInferenceEngine(ISweetIEDescriptor descriptor)
Description copied from interface: ISweetIERepository
Gets an IIEDescriptor corresponding to a given name

Specified by:
getInferenceEngine in interface ISweetIERepository
Parameters:
descriptor - The descriptor of the IE which is to be retrieved
Returns:
The IE descriptor matching the name