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
public class MACFACQueryImpl extends QueryImpl implements MACFACQuery
The query class for MAC/FAC queries which contains additional parameters to control the behavior of the MAC/FAC retriever. Implementation ofMACFACQuery.- 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
Constructors Constructor Description MACFACQueryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QuerygetFacQuery()Returns the FAC-query if a FAC-query was set beforeintgetFilterSize()Gets the current set number of items, which should be communicated between MAC and FAC stage.doublegetMinMACSimilarity()Gets the minimum similarity that a result from the MAC phase has to have in order to be used for FAC phase.voidsetFacQuery(Query facQuery)Sets the FAC-query of the MACFAC-queryvoidsetFilterSize(int size)Sets the number of items, which should be communicated between MAC and FAC stage.voidsetMinMACSimilarity(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
-
-
-
-
Method Detail
-
getFilterSize
public int getFilterSize()
Description copied from interface:MACFACQueryGets the current set number of items, which should be communicated between MAC and FAC stage.- Specified by:
getFilterSizein interfaceMACFACQuery
-
setFilterSize
public void setFilterSize(int size)
Description copied from interface:MACFACQuerySets the number of items, which should be communicated between MAC and FAC stage.- Specified by:
setFilterSizein interfaceMACFACQuery
-
getMinMACSimilarity
public double getMinMACSimilarity()
Description copied from interface:MACFACQueryGets the minimum similarity that a result from the MAC phase has to have in order to be used for FAC phase.- Specified by:
getMinMACSimilarityin interfaceMACFACQuery- Returns:
- the minimum MAC similarity
-
setMinMACSimilarity
public void setMinMACSimilarity(double minMACSimilarity)
Description copied from interface:MACFACQuerySets the minimum similarity that a result from the MAC phase has to have in order to be used for FAC phase.- Specified by:
setMinMACSimilarityin interfaceMACFACQuery- Parameters:
minMACSimilarity- the minimum MAC similarity
-
getFacQuery
public Query getFacQuery()
Description copied from interface:MACFACQueryReturns the FAC-query if a FAC-query was set before- Specified by:
getFacQueryin interfaceMACFACQuery
-
setFacQuery
public void setFacQuery(Query facQuery)
Description copied from interface:MACFACQuerySets the FAC-query of the MACFAC-query- Specified by:
setFacQueryin interfaceMACFACQuery- Parameters:
facQuery- using FAC-query
-
-