Class RetrieverImpl<TCase extends DataObject,TQuery extends Query>
java.lang.Object
de.uni_trier.wi2.procake.utils.composition.FactoryObjectImplementation
de.uni_trier.wi2.procake.utils.composition.AbstractEmptyFactoryObjectImplementation
de.uni_trier.wi2.procake.retrieval.impl.RetrieverImpl<TCase,TQuery>
- All Implemented Interfaces:
Retriever<TCase,
TQuery>
- Direct Known Subclasses:
AbstractMACFACRetriever
,DependencyRetrieverImpl
,FeatureRetriever
,GraphAStarParallelRetrieverImpl
,LinearRetrieverImpl
,ParallelLinearRetrieverImpl
public abstract class RetrieverImpl<TCase extends DataObject,TQuery extends Query>
extends AbstractEmptyFactoryObjectImplementation
implements Retriever<TCase,TQuery>
-
Field Summary
Fields inherited from interface de.uni_trier.wi2.procake.retrieval.Retriever
DEFAULT_ADDQUERYTORESULTS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
protected ReadableObjectPool<TCase>
protected SimilarityModel
boolean
Checks whether the retriever is instructed to add the query to the RetrievalResultListnewQuery()
Creates a newQuery
for the retriever.void
setAddQueryToResults
(boolean addQueryToResults) Instructs retriever to add the query to the RetrievalResultList depending on addQueryToResultsvoid
setInternalSimilarityMeasure
(String internalSimilarityMeasure) Sets internal similarity measure that is used to compute similarityvoid
Sets the object pool.void
Sets the similarity model.Methods inherited from class de.uni_trier.wi2.procake.utils.composition.AbstractEmptyFactoryObjectImplementation
getParameters, postInit, preInit
Methods inherited from class de.uni_trier.wi2.procake.utils.composition.FactoryObjectImplementation
getParameter, initParametersBasedOn
-
Constructor Details
-
RetrieverImpl
public RetrieverImpl()
-
-
Method Details
-
getObjectPool
- Returns:
- Returns the used case base.
-
setObjectPool
Description copied from interface:Retriever
Sets the object pool.- Specified by:
setObjectPool
in interfaceRetriever<TCase extends DataObject,
TQuery extends Query>
-
getInternalSimilarityMeasure
- Returns:
- Returns the internal similarity measure.
-
setInternalSimilarityMeasure
Description copied from interface:Retriever
Sets internal similarity measure that is used to compute similarity- Specified by:
setInternalSimilarityMeasure
in interfaceRetriever<TCase extends DataObject,
TQuery extends Query>
-
getSimilarityModel
- Returns:
- Returns the used similarity model.
-
setSimilarityModel
Description copied from interface:Retriever
Sets the similarity model. By default, the default model is used.- Specified by:
setSimilarityModel
in interfaceRetriever<TCase extends DataObject,
TQuery extends Query>
-
getValuator
- Specified by:
getValuator
in interfaceRetriever<TCase extends DataObject,
TQuery extends Query> - Returns:
- Returns the similarity valuator for performing the retrieval
-
isAddQueryToResults
public boolean isAddQueryToResults()Description copied from interface:Retriever
Checks whether the retriever is instructed to add the query to the RetrievalResultList- Specified by:
isAddQueryToResults
in interfaceRetriever<TCase extends DataObject,
TQuery extends Query> - Returns:
- boolean
-
setAddQueryToResults
public void setAddQueryToResults(boolean addQueryToResults) Description copied from interface:Retriever
Instructs retriever to add the query to the RetrievalResultList depending on addQueryToResults- Specified by:
setAddQueryToResults
in interfaceRetriever<TCase extends DataObject,
TQuery extends Query> - Parameters:
addQueryToResults
- Defines, whether query should be added or not
-
newQuery
Description copied from interface:Retriever
Creates a newQuery
for the retriever. Do not mix the query objects between different retrieval implementation because queries can be implementation dependent.
-