Class SMTaxonomyNodeHeightImpl
java.lang.Object
de.uni_trier.wi2.procake.similarity.impl.SimilarityMeasureImpl
de.uni_trier.wi2.procake.similarity.base.taxonomy.impl.SMTaxonomyImpl
de.uni_trier.wi2.procake.similarity.base.taxonomy.impl.SMTaxonomyWeightedNodes
de.uni_trier.wi2.procake.similarity.base.taxonomy.impl.SMTaxonomyNodeHeightImpl
- All Implemented Interfaces:
SMTaxonomy
,SMTaxonomyNodeHeight
,SimilarityMeasure
public class SMTaxonomyNodeHeightImpl
extends SMTaxonomyWeightedNodes
implements SMTaxonomyNodeHeight
Implementation of
SMTaxonomyNodeHeight
.- Author:
- Rainer Maximini
-
Field Summary
Fields inherited from class de.uni_trier.wi2.procake.similarity.base.taxonomy.impl.SMTaxonomyWeightedNodes
deepestNodeHeight, logger
Fields inherited from interface de.uni_trier.wi2.procake.similarity.SimilarityMeasure
LOG_ORDER_NAME_NOT_FOUND
Fields inherited from interface de.uni_trier.wi2.procake.similarity.base.taxonomy.SMTaxonomyNodeHeight
NAME, STRATEGY_DEFAULT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncompute
(DataObject queryObject, DataObject caseObject, SimilarityValuator valuator) The system name can be used to distinguish the similarity measures.boolean
void
setStrategy
(Strategy strategy) Methods inherited from class de.uni_trier.wi2.procake.similarity.base.taxonomy.impl.SMTaxonomyWeightedNodes
addNodeWeight, clearNodeWeights, getNodeWeight, initClassCaches, removeNodeWeight
Methods inherited from class de.uni_trier.wi2.procake.similarity.base.taxonomy.impl.SMTaxonomyImpl
getAtomicClass, getInstanceTaxonomyOrderPredicate, initialize, isSimilarityFor
Methods inherited from class de.uni_trier.wi2.procake.similarity.impl.SimilarityMeasureImpl
getDataClass, getName, 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.taxonomy.SMTaxonomy
getInstanceTaxonomyOrderPredicate
-
Constructor Details
-
SMTaxonomyNodeHeightImpl
public SMTaxonomyNodeHeightImpl()
-
-
Method Details
-
compute
public Similarity compute(DataObject queryObject, DataObject caseObject, SimilarityValuator valuator) - Specified by:
compute
in interfaceSimilarityMeasure
- Returns:
-
getStrategy
- Specified by:
getStrategy
in interfaceSMTaxonomyNodeHeight
-
setStrategy
- Specified by:
setStrategy
in interfaceSMTaxonomyNodeHeight
- Parameters:
strategy
- Defined the strategy that should be used.
-
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.
-
isNodeHeight
public boolean isNodeHeight()
-