kaos.ontology.matching
Interface InstanceClassifier

All Known Subinterfaces:
KAoSInstanceClassifier
All Known Implementing Classes:
XMLSchemaClassifier

public interface InstanceClassifier

This will act as a superclass of instance classifier. There will be more specific sublclasses of this interface. $Revision: 1.4 $


Method Summary
 boolean classify(java.lang.Object className, java.lang.Object instance, java.lang.Object classDesc, java.lang.Object instDesc)
          Check if the instance is in the given class range
 void init()
          Initializes the specific instance classifier for instance loading necessary ontologies, etc.
 void setOntologyInterfaces(OntologyInterfaces ontInterfaces)
          Set OntologyInterfaces.
 

Method Detail

classify

boolean classify(java.lang.Object className,
                 java.lang.Object instance,
                 java.lang.Object classDesc,
                 java.lang.Object instDesc)
                 throws InstanceClassifierInitializationException,
                        InstanceClassifierClassCastException,
                        UnknownConceptException
Check if the instance is in the given class range

Parameters:
className - ontology name of the class defining the range
instance - the instance to be checked
classDesc - the class description
instDesc - the instance description
Returns:
True if the instance is of the specified class, false if not.
Throws:
throws - InstanceClassifierInitializationException if the initialization of the classifier was not successful, details will be provided in the return string
InstanceClassifierInitializationException
InstanceClassifierClassCastException
UnknownConceptException

init

void init()
          throws InstanceClassifierInitializationException
Initializes the specific instance classifier for instance loading necessary ontologies, etc.

Throws:
InstanceClassifierInitializationException - if the initialization of the instance classifier was not successful, details will be provided in the return string

setOntologyInterfaces

void setOntologyInterfaces(OntologyInterfaces ontInterfaces)
Set OntologyInterfaces.

Parameters:
ontInterfaces - OntologyInterfaces to be used, if needed for instance classification.