Class SMListMappingWeightedImpl
java.lang.Object
de.uni_trier.wi2.procake.similarity.impl.SimilarityMeasureImpl
de.uni_trier.wi2.procake.similarity.base.collection.impl.SMCollectionImpl
de.uni_trier.wi2.procake.similarity.base.collection.impl.SMListMappingImpl
de.uni_trier.wi2.procake.similarity.base.collection.impl.SMListMappingWeightedImpl
- All Implemented Interfaces:
SMCollection
,SMListMapping
,SMListMappingWeighted
,SMListWeighted
,SimilarityMeasure
Implementation of
SMListMappingWeighted
.- Author:
- Justin Weich
-
Field Summary
Fields inherited from class de.uni_trier.wi2.procake.similarity.base.collection.impl.SMListMappingImpl
returnLocalSimilarities
Fields inherited from class de.uni_trier.wi2.procake.similarity.base.collection.impl.SMCollectionImpl
similarityToUse
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.collection.SMCollection
LOG_ATTRIBUTE_NAME_NOT_FOUND
Fields inherited from interface de.uni_trier.wi2.procake.similarity.base.collection.SMListMapping
DEFAULT_CONTAINS_EXACT, NAME
Fields inherited from interface de.uni_trier.wi2.procake.similarity.base.collection.SMListMappingWeighted
NAME
Fields inherited from interface de.uni_trier.wi2.procake.similarity.base.collection.SMListWeighted
DEFAULT_WEIGHT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addWeight
(ListWeight listWeight) Adds aListWeight
to the currentListWeight
s.compute
(DataObject queryObject, DataObject caseObject, SimilarityValuator valuator) double
Returns the default weight for newListWeight
s.The system name can be used to distinguish the similarity measures.Returns the addedListWeight
s.void
setDefaultWeight
(double defaultWeight) Sets the default weight for newListWeight
s.void
setWeights
(LinkedList<ListWeight> listWeights) Sets the addedListWeight
s.Methods inherited from class de.uni_trier.wi2.procake.similarity.base.collection.impl.SMListMappingImpl
containsExact, containsInexact, getReturnLocalSimilarities, isSimilarityFor, setContainsExact, setContainsInexact, setReturnLocalSimilarities
Methods inherited from class de.uni_trier.wi2.procake.similarity.base.collection.impl.SMCollectionImpl
checkStoppingCriteria, getCollectionClass, getSimilarityToUse, initializeBasedOn, setSimilarityToUse
Methods inherited from class de.uni_trier.wi2.procake.similarity.impl.SimilarityMeasureImpl
getDataClass, getName, initialize, 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.collection.SMCollection
getSimilarityToUse, setSimilarityToUse
Methods inherited from interface de.uni_trier.wi2.procake.similarity.base.collection.SMListMapping
containsExact, containsInexact, getReturnLocalSimilarities, setContainsExact, setContainsInexact, setReturnLocalSimilarities
-
Constructor Details
-
SMListMappingWeightedImpl
public SMListMappingWeightedImpl()
-
-
Method Details
-
compute
public Similarity compute(DataObject queryObject, DataObject caseObject, SimilarityValuator valuator) - Specified by:
compute
in interfaceSimilarityMeasure
- Overrides:
compute
in classSMListMappingImpl
- Returns:
-
getWeights
Description copied from interface:SMListWeighted
Returns the addedListWeight
s.- Specified by:
getWeights
in interfaceSMListWeighted
-
setWeights
Description copied from interface:SMListWeighted
Sets the addedListWeight
s.- Specified by:
setWeights
in interfaceSMListWeighted
- Parameters:
listWeights
- a list ofListWeight
s
-
addWeight
Description copied from interface:SMListWeighted
Adds aListWeight
to the currentListWeight
s.- Specified by:
addWeight
in interfaceSMListWeighted
- Parameters:
listWeight
- theListWeight
to add
-
getDefaultWeight
public double getDefaultWeight()Description copied from interface:SMListWeighted
Returns the default weight for newListWeight
s.- Specified by:
getDefaultWeight
in interfaceSMListWeighted
-
setDefaultWeight
public void setDefaultWeight(double defaultWeight) Description copied from interface:SMListWeighted
Sets the default weight for newListWeight
s.- Specified by:
setDefaultWeight
in interfaceSMListWeighted
-
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
- Overrides:
getSystemName
in classSMListMappingImpl
- Returns:
- The system name of the similarity measure. This is equal to SimilarityMeasure.NAME.
-