Interface SMTaxonomyClassic
-
- All Superinterfaces:
SimilarityMeasure,SMTaxonomy
- All Known Subinterfaces:
SMTaxonomyClassicUserWeights
- All Known Implementing Classes:
SMTaxonomyClassicImpl,SMTaxonomyClassicUserWeightsImpl
public interface SMTaxonomyClassic extends SMTaxonomy
The classic taxonomy measure is calculated by both pre-initialised node weights and several strategies.The node weights are pre-initialised and all nodes of one level have the same weight. The node weights can be calculated by the following function:
weight(node) = (height(node) / (maxlevels - 1)) - (1 / (maxlevels - 1))
Where 'maxlevels' denote the number of levels in the taxonomy and the function 'height' starts with 1 for the root and increases the height for each level, e.g., the childs of root have the height 2.
- Author:
- Rainer Maximini
-
-
Field Summary
Fields Modifier and Type Field Description static StringNAMEName of similarity measure is "TaxonomyClassic".static StrategySTRATEGY_DEFAULTThe default strategy isStrategy.OPTIMISTIC.-
Fields inherited from interface de.uni_trier.wi2.procake.similarity.SimilarityMeasure
COMPONENT, COMPONENT_KEY, LOG_ORDER_NAME_NOT_FOUND
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StrategygetInnerNodeInCaseStrategy()StrategygetInnerNodeInQueryStrategy()voidsetInnerNodeInCaseStrategy(Strategy strategy)Define the strategy that should be used in case that the case is a child of the query.voidsetInnerNodeInQueryStrategy(Strategy strategy)Define the strategy that should be used in case that the query is a child of the case.-
Methods inherited from interface de.uni_trier.wi2.procake.similarity.SimilarityMeasure
compute, getDataClass, getName, getSystemName, isForceOverride, isReusable, setForceOverride
-
Methods inherited from interface de.uni_trier.wi2.procake.similarity.base.taxonomy.SMTaxonomy
getInstanceTaxonomyOrderPredicate
-
-
-
-
Field Detail
-
NAME
static final String NAME
Name of similarity measure is "TaxonomyClassic".- See Also:
- Constant Field Values
-
STRATEGY_DEFAULT
static final Strategy STRATEGY_DEFAULT
The default strategy isStrategy.OPTIMISTIC.
-
-
Method Detail
-
getInnerNodeInCaseStrategy
Strategy getInnerNodeInCaseStrategy()
-
setInnerNodeInCaseStrategy
void setInnerNodeInCaseStrategy(Strategy strategy)
Define the strategy that should be used in case that the case is a child of the query.- Parameters:
strategy- The strategy that should be used.
-
getInnerNodeInQueryStrategy
Strategy getInnerNodeInQueryStrategy()
-
setInnerNodeInQueryStrategy
void setInnerNodeInQueryStrategy(Strategy strategy)
Define the strategy that should be used in case that the query is a child of the case.- Parameters:
strategy- The strategy that should be used.
-
-