Class SMListMappingImpl
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
- All Implemented Interfaces:
SMCollection
,SMListMapping
,SimilarityMeasure
- Direct Known Subclasses:
SMListMappingWeightedImpl
Implementation of
SMListMapping
.- Author:
- Alexander Schultheis
-
Field Summary
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncompute
(DataObject queryObject, DataObject caseObject, SimilarityValuator valuator) boolean
Checks if an exact matching is wanted.boolean
Checks if an inexact matching is wanted.boolean
Returns a bool if the local similarities are returned.The system name can be used to distinguish the similarity measures.boolean
isSimilarityFor
(DataClass dataclass, String orderName) void
Sets the value for exact containing to truevoid
Sets the value for exact containing to falsevoid
setReturnLocalSimilarities
(boolean returnLocalSimilarities) Sets a parameter to return the local similarities.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
-
Field Details
-
returnLocalSimilarities
protected boolean returnLocalSimilarities
-
-
Constructor Details
-
SMListMappingImpl
public SMListMappingImpl()
-
-
Method Details
-
compute
public Similarity compute(DataObject queryObject, DataObject caseObject, SimilarityValuator valuator) - Specified by:
compute
in interfaceSimilarityMeasure
- Returns:
-
isSimilarityFor
- Overrides:
isSimilarityFor
in classSMCollectionImpl
-
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.
-
containsExact
public boolean containsExact()Description copied from interface:SMListMapping
Checks if an exact matching is wanted.- Specified by:
containsExact
in interfaceSMListMapping
- Returns:
- True if an exact matching is wanted.
-
containsInexact
public boolean containsInexact()Description copied from interface:SMListMapping
Checks if an inexact matching is wanted.- Specified by:
containsInexact
in interfaceSMListMapping
- Returns:
- True if an inexact matching is wanted.
-
setContainsExact
public void setContainsExact()Description copied from interface:SMListMapping
Sets the value for exact containing to true- Specified by:
setContainsExact
in interfaceSMListMapping
-
setContainsInexact
public void setContainsInexact()Description copied from interface:SMListMapping
Sets the value for exact containing to false- Specified by:
setContainsInexact
in interfaceSMListMapping
-
setReturnLocalSimilarities
public void setReturnLocalSimilarities(boolean returnLocalSimilarities) Description copied from interface:SMListMapping
Sets a parameter to return the local similarities.- Specified by:
setReturnLocalSimilarities
in interfaceSMListMapping
-
getReturnLocalSimilarities
public boolean getReturnLocalSimilarities()Description copied from interface:SMListMapping
Returns a bool if the local similarities are returned.- Specified by:
getReturnLocalSimilarities
in interfaceSMListMapping
-