Interface SimilarityMeasure
- All Known Subinterfaces:
SMAggregate
,SMAggregateAverage
,SMAggregateEuclidian
,SMAggregateKMaximum
,SMAggregateKMinimum
,SMAggregateMaximum
,SMAggregateMinimum
,SMAggregateMinkowski
,SMAggregateWeighted
,SMCollection
,SMCollectionIsolatedMapping
,SMCollectionMapping
,SMGraphAStar
,SMGraphAStarOne
,SMGraphAStarThree
,SMGraphAStarTwo
,SMGraphDTW
,SMGraphSWA
,SMInterval
,SMListCorrectness
,SMListDP
,SMListDTW
,SMListDTWWeighted
,SMListMapping
,SMListMappingWeighted
,SMListSWA
,SMListSWAWeighted
,SMNESTGraphItem
,SMNumeric
,SMNumericExponential
,SMNumericFuzzy
,SMNumericLinear
,SMNumericSigmoid
,SMNumericThreshold
,SMObjectEqual
,SMOntology
,SMOntologyAggAvg
,SMOntologyAggMin
,SMOntologyAggWeighted
,SMOntologyDirectGroup
,SMOntologyFbMS
,SMOntologyFbSanchez
,SMOntologyIndirectGroup
,SMOntologyIsEquivalent
,SMOntologyPath
,SMOntologySpRada
,SMOntologySpSlimani
,SMOntologySpWuPalmer
,SMSimpleTask
,SMSimpleWorkflow
,SMString
,SMStringCosine
,SMStringEqual
,SMStringIsolatedMapping
,SMStringJaroWinkler
,SMStringLevenshtein
,SMStringNGram
,SMStringRegexp
,SMStringTermCount
,SMStringWildcard
,SMTableDataClass
,SMTableDataObject
,SMTaxonomy
,SMTaxonomyClassic
,SMTaxonomyClassicUserWeights
,SMTaxonomyNodeHeight
,SMTaxonomyPath
,SMUnion
,SMWorkflowEqual
,SMWorkflowLevenshtein
- All Known Implementing Classes:
SimilarityMeasureImpl
,SMAggregateAverageImpl
,SMAggregateEuclidianImpl
,SMAggregateImpl
,SMAggregateKMaximumImpl
,SMAggregateKMinimumImpl
,SMAggregateMaximumImpl
,SMAggregateMinimumImpl
,SMAggregateMinkowskiImpl
,SMAggregateWeightedImpl
,SMCollectionImpl
,SMCollectionIsolatedMappingImpl
,SMCollectionMappingImpl
,SMGraphAStarImpl
,SMGraphAStarOneImpl
,SMGraphAStarThreeImpl
,SMGraphAStarTwoImpl
,SMGraphDTWImpl
,SMGraphSWAImpl
,SMIntervalImpl
,SMListCorrectnessImpl
,SMListDPImpl
,SMListDTWImpl
,SMListDTWWeightedImpl
,SMListMappingImpl
,SMListMappingWeightedImpl
,SMListSWAImpl
,SMListSWAWeightedImpl
,SMNESTGraphItemImpl
,SMNumericExponentialImpl
,SMNumericFuzzyImpl
,SMNumericImpl
,SMNumericLinearImpl
,SMNumericSigmoidImpl
,SMNumericThresholdImpl
,SMObjectEqualImpl
,SMOntologyAggAvgImpl
,SMOntologyAggMinImpl
,SMOntologyAggWeightedImpl
,SMOntologyDirectGroupImpl
,SMOntologyFbMSImpl
,SMOntologyFbSanchezImpl
,SMOntologyImpl
,SMOntologyIndirectGroupImpl
,SMOntologyIsEquivalentImpl
,SMOntologyPathImpl
,SMOntologySpRadaImpl
,SMOntologySpSlimaniImpl
,SMOntologySpWuPalmerImpl
,SMSimpleTaskImpl
,SMSimpleWorkflowImpl
,SMStringCosineImpl
,SMStringEqualImpl
,SMStringImpl
,SMStringIsolatedMappingImpl
,SMStringJaroWinklerImpl
,SMStringLevenshteinImpl
,SMStringNGramImpl
,SMStringRegexpImpl
,SMStringTermCountImpl
,SMStringWildcardImpl
,SMTableDataClassImpl
,SMTableDataObjectImpl
,SMTaxonomyClassicImpl
,SMTaxonomyClassicUserWeightsImpl
,SMTaxonomyImpl
,SMTaxonomyNodeHeightImpl
,SMTaxonomyPathImpl
,SMTaxonomyWeightedNodes
,SMUnionImpl
,SMWorkflowEqualImpl
,SMWorkflowLevenshteinImpl
public interface SimilarityMeasure
Main interface for all similarity measures.
All similarity measures are implementing this interface. It provides some common methods that are required for all similarity measure.
- Author:
- Rainer Maximini
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptioncompute
(DataObject queryObject, DataObject caseObject, SimilarityValuator valuator) Each similarity measure is defined for oneDataClass
.getName()
Each similarity measure has an unique name for the definedDataClass
.The system name can be used to distinguish the similarity measures.boolean
boolean
void
setForceOverride
(boolean forceOverride) set if this measure should override an existing measure of same name
-
Field Details
-
LOG_ORDER_NAME_NOT_FOUND
- See Also:
-
-
Method Details
-
compute
- Parameters:
queryObject
-caseObject
-valuator
-- Returns:
-
getDataClass
DataClass getDataClass()Each similarity measure is defined for oneDataClass
. TheDataClass
must be set during initialisation withSimilarityModel.createSimilarityMeasure(String, DataClass)
.- Returns:
- The
DataClass
for wich this similarity measure is defined.
-
getName
String getName()Each similarity measure has an unique name for the definedDataClass
. The name must be given during registration, seeSimilarityModel.addSimilarityMeasure(SimilarityMeasure, String)
.- Returns:
- The current name of the similarity measure
-
getSystemName
String getSystemName()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)
.- Returns:
- The system name of the similarity measure. This is equal to SimilarityMeasure.NAME.
-
isForceOverride
boolean isForceOverride()- Returns:
- true if this measure should override an existing measure of same name
-
setForceOverride
void setForceOverride(boolean forceOverride) set if this measure should override an existing measure of same name -
isReusable
boolean isReusable()- Returns:
- true if the measure is reusable
-