kaos.core.csi.extension.classification
Interface InstanceClassifier

All Superinterfaces:
KAoSExtensionComponent

public interface InstanceClassifier
extends KAoSExtensionComponent

Interface to instance classifier $Revision: 1.7 $


Method Summary
 boolean classify(java.lang.String className, java.lang.Object classDesc, java.lang.String instanceName, java.lang.Object instDesc)
          Check if the instance is in of the given class
 void setOntologyInterfaces(OntologyService ontInterfaces)
          TODO: remove it when OntologyService become available in CSI Set optional OntologyService to be used to retrieve a missing ontology definition of not provided explicitly in the classify method arguments
 
Methods inherited from interface kaos.core.csi.extension.KAoSExtensionComponent
addOntologicalAttribute, getEnabledStatus, getName, getOntologicalAttributes, setEnabledStatus, setName, setProperties
 

Method Detail

classify

boolean classify(java.lang.String className,
                 java.lang.Object classDesc,
                 java.lang.String instanceName,
                 java.lang.Object instDesc)
                 throws ClassifierException
Check if the instance is in of the given class

Parameters:
className - name of the class (as url to the ontology concept)
classDesc - the optional class description
instance - the instance to be classified
instDesc - the optional instance description
checkedPolicyType - the type of the checked policy
Returns:
True if the instance is of the specified class, false if not.
Throws:
ClassifierException

setOntologyInterfaces

void setOntologyInterfaces(OntologyService ontInterfaces)
TODO: remove it when OntologyService become available in CSI Set optional OntologyService to be used to retrieve a missing ontology definition of not provided explicitly in the classify method arguments

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


Copyright © 2006 IHMC All Rights Reserved.