Class SMOntologyIndirectGroupImpl
- java.lang.Object
-
- de.uni_trier.wi2.procake.similarity.impl.SimilarityMeasureImpl
-
- de.uni_trier.wi2.procake.similarity.base.ontology.impl.SMOntologyImpl
-
- de.uni_trier.wi2.procake.similarity.base.ontology.group.impl.SMOntologyIndirectGroupImpl
-
- All Implemented Interfaces:
SMOntologyIndirectGroup
,SMOntology
,SimilarityMeasure
public class SMOntologyIndirectGroupImpl extends SMOntologyImpl implements SMOntologyIndirectGroup
This similarity measure calculates the similarity between to sets of objects from an ontology. A description of the measure can be found inSMOntologyIndirectGroup
.- Author:
- Tobias Dahlem
-
-
Field Summary
-
Fields inherited from interface de.uni_trier.wi2.procake.similarity.SimilarityMeasure
COMPONENT, COMPONENT_KEY, LOG_ORDER_NAME_NOT_FOUND
-
Fields inherited from interface de.uni_trier.wi2.procake.similarity.base.ontology.group.SMOntologyIndirectGroup
NAME
-
-
Constructor Summary
Constructors Constructor Description SMOntologyIndirectGroupImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Similarity
compute(DataObject queryObject, DataObject caseObject, SimilarityValuator valuator)
OntologyIndirectMeasureAggEnum
getAggFunction()
String
getSimMeasure()
String
getSystemName()
The system name can be used to distinguish the similarity measures.void
setAggFunction(OntologyIndirectMeasureAggEnum aggFunction)
Set the aggregation function for the calculated similarities.void
setSimMeasure(String measure)
Set the similarity measure for the determined pairs.-
Methods inherited from class de.uni_trier.wi2.procake.similarity.base.ontology.impl.SMOntologyImpl
checkArgumentApplicability, checkInstanceOntologyOrderPredicate, isSimilarityFor, validateNonNull, validateOntologyMatching, validateOntologyResource
-
Methods inherited from class de.uni_trier.wi2.procake.similarity.impl.SimilarityMeasureImpl
getDataClass, getName, initialize, initializeBasedOn, isAggregate, isForceOverride, isInterval, isNumeric, isObject, isReusable, isSet, isTable, isTaxonomy, isText, setDataClass, setForceOverride, setName, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.uni_trier.wi2.procake.similarity.SimilarityMeasure
getDataClass, getName, isForceOverride, isReusable, setForceOverride
-
Methods inherited from interface de.uni_trier.wi2.procake.similarity.base.ontology.SMOntology
checkArgumentApplicability, checkInstanceOntologyOrderPredicate
-
-
-
-
Method Detail
-
compute
public Similarity compute(DataObject queryObject, DataObject caseObject, SimilarityValuator valuator)
- Specified by:
compute
in interfaceSimilarityMeasure
- Returns:
-
getSystemName
public String getSystemName()
Description copied from interface:SimilarityMeasure
The system name can be used to distinguish the similarity measures. Each similarity measure that can be instantiated contains a static final field called NAME representing the system name, e.g.,SMAggregateEuclidian.NAME
The system name must also be given during initialization, see
SimilarityModel.createSimilarityMeasure(String, DataClass)
.- Specified by:
getSystemName
in interfaceSimilarityMeasure
- Returns:
- The system name of the similarity measure. This is equal to SimilarityMeasure.NAME.
-
getSimMeasure
public String getSimMeasure()
- Specified by:
getSimMeasure
in interfaceSMOntologyIndirectGroup
- Returns:
- the name of the similarity model used.
-
setSimMeasure
public void setSimMeasure(String measure)
Description copied from interface:SMOntologyIndirectGroup
Set the similarity measure for the determined pairs.- Specified by:
setSimMeasure
in interfaceSMOntologyIndirectGroup
- Parameters:
measure
- the name of the measure from the similarity model used.
-
getAggFunction
public OntologyIndirectMeasureAggEnum getAggFunction()
- Specified by:
getAggFunction
in interfaceSMOntologyIndirectGroup
- Returns:
- the name of the aggregation function used.
-
setAggFunction
public void setAggFunction(OntologyIndirectMeasureAggEnum aggFunction)
Description copied from interface:SMOntologyIndirectGroup
Set the aggregation function for the calculated similarities.- Specified by:
setAggFunction
in interfaceSMOntologyIndirectGroup
- Parameters:
aggFunction
- the name of the aggregation function.
-
-