Interface SMCollectionMapping
- All Superinterfaces:
SimilarityMeasure
,SMCollection
- All Known Implementing Classes:
SMCollectionMappingImpl
The CollectionMapping performs the best possible mapping of the query items to the case items of
the collection. Note that not all case items have to be utilized in the mapping, but all query
items are tried to map. Each query element can only be mapped on a case element, which hasn't
already a mapping partner. If more query items than case items exist, some query items will get
similarity 0 (which will add up to the complete similarity). If more case items than query items
exist, then this will not interfere with the similarity-value (rather gives more possible
match-scenarios).
- Author:
- Alexander Stromer
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Default maximum size of the solution queue is 1000static final String
Name of similarity measure is "CollectionMapping".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
-
Method Summary
Modifier and TypeMethodDescriptionint
Gets the queue size of the A* measurevoid
setMaxQueueSize
(int qSize) Sets the maximum size of the queue that stores the (partial) solutions of the A* algorithm.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.collection.SMCollection
getSimilarityToUse, setSimilarityToUse
-
Field Details
-
NAME
Name of similarity measure is "CollectionMapping".- See Also:
-
DEFAULT_MAX_QUEUE_SIZE
static final int DEFAULT_MAX_QUEUE_SIZEDefault maximum size of the solution queue is 1000- See Also:
-
-
Method Details
-
getMaxQueueSize
int getMaxQueueSize()Gets the queue size of the A* measure- Returns:
- The maximum queue size
-
setMaxQueueSize
void setMaxQueueSize(int qSize) Sets the maximum size of the queue that stores the (partial) solutions of the A* algorithm. If the current queue grows larger than the set maximum, the lowest ranked solutions will be removed. Setting a negative value disables pruning of the queue.- Parameters:
qSize
- The maximum queue size
-