Class MACFACQueryImpl
java.lang.Object
de.uni_trier.wi2.procake.retrieval.impl.QueryImpl
de.uni_trier.wi2.procake.retrieval.impl.MACFACQueryImpl
- All Implemented Interfaces:
MACFACQuery
,Query
The query class for MAC/FAC queries which contains additional parameters to control the behavior
of the MAC/FAC retriever. Implementation of
MACFACQuery
.- Author:
- Alexander Stromer, Maximilian Hoffmann
-
Field Summary
Fields inherited from interface de.uni_trier.wi2.procake.retrieval.MACFACQuery
DEFAULT_FILTER_SIZE, DEFAULT_MIN_MAC_SIMILARITY
Fields inherited from interface de.uni_trier.wi2.procake.retrieval.Query
DEFAULT_MINSIMILARITY, DEFAULT_NUMBEROFRESULTS, DEFAULT_RETRIEVECASES
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the FAC-query if a FAC-query was set beforeint
Gets the current set number of items, which should be communicated between MAC and FAC stage.double
Gets the minimum similarity that a result from the MAC phase has to have in order to be used for FAC phase.void
setFacQuery
(Query facQuery) Sets the FAC-query of the MACFAC-queryvoid
setFilterSize
(int size) Sets the number of items, which should be communicated between MAC and FAC stage.void
setMinMACSimilarity
(double minMACSimilarity) Sets the minimum similarity that a result from the MAC phase has to have in order to be used for FAC phase.Methods inherited from class de.uni_trier.wi2.procake.retrieval.impl.QueryImpl
fromXML, getMinSimilarity, getNumberOfResults, getQueryObject, isRetrieveCases, setMinSimilarity, setNumberOfResults, setQueryObject, setRetrieveCases, toXML, toXML
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.uni_trier.wi2.procake.retrieval.Query
fromXML, getMinSimilarity, getNumberOfResults, getQueryObject, isRetrieveCases, setMinSimilarity, setNumberOfResults, setQueryObject, setRetrieveCases, toXML, toXML
-
Constructor Details
-
MACFACQueryImpl
public MACFACQueryImpl()
-
-
Method Details
-
getFilterSize
public int getFilterSize()Description copied from interface:MACFACQuery
Gets the current set number of items, which should be communicated between MAC and FAC stage.- Specified by:
getFilterSize
in interfaceMACFACQuery
-
setFilterSize
public void setFilterSize(int size) Description copied from interface:MACFACQuery
Sets the number of items, which should be communicated between MAC and FAC stage.- Specified by:
setFilterSize
in interfaceMACFACQuery
-
getMinMACSimilarity
public double getMinMACSimilarity()Description copied from interface:MACFACQuery
Gets the minimum similarity that a result from the MAC phase has to have in order to be used for FAC phase.- Specified by:
getMinMACSimilarity
in interfaceMACFACQuery
- Returns:
- the minimum MAC similarity
-
setMinMACSimilarity
public void setMinMACSimilarity(double minMACSimilarity) Description copied from interface:MACFACQuery
Sets the minimum similarity that a result from the MAC phase has to have in order to be used for FAC phase.- Specified by:
setMinMACSimilarity
in interfaceMACFACQuery
- Parameters:
minMACSimilarity
- the minimum MAC similarity
-
getFacQuery
Description copied from interface:MACFACQuery
Returns the FAC-query if a FAC-query was set before- Specified by:
getFacQuery
in interfaceMACFACQuery
-
setFacQuery
Description copied from interface:MACFACQuery
Sets the FAC-query of the MACFAC-query- Specified by:
setFacQuery
in interfaceMACFACQuery
- Parameters:
facQuery
- using FAC-query
-