Interface DependencyQuery
- All Superinterfaces:
Query
- All Known Implementing Classes:
DependencyQueryImpl
Interface, that provides a description of a dependency query to be used in
Retriever.perform(Query)
. A dependency query object can be created using
DependencyRetriever.newQuery()
. Unlike the standard Query
, a dependency query
contains a list of all query objects as well as a list of dependencies.- Author:
- Rahol Kumar, Alexander Schultheis
-
Field Summary
Fields inherited from interface de.uni_trier.wi2.procake.retrieval.Query
DEFAULT_MINSIMILARITY, DEFAULT_NUMBEROFRESULTS, DEFAULT_RETRIEVECASES
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDependency
(Dependency dependency) Method, that adds a dependency to the query.void
addQueryObject
(DataObject queryObject) Method, that adds a new query object to the dependency query.Method, that returns a list of the desired dependencies.Method, that returns a list of the query objects.Methods inherited from interface de.uni_trier.wi2.procake.retrieval.Query
fromXML, getMinSimilarity, getNumberOfResults, getQueryObject, isRetrieveCases, setMinSimilarity, setNumberOfResults, setQueryObject, setRetrieveCases, toXML, toXML
-
Method Details
-
addQueryObject
Method, that adds a new query object to the dependency query.- Parameters:
queryObject
- Data object to be used in the query.
-
addDependency
Method, that adds a dependency to the query. The method checks, if the source and the target object of the dependency are already contained as query objects. If not, an exception will be thrown.- Parameters:
dependency
- The dependency to be added to the query.
-
getQueryObjects
List<DataObject> getQueryObjects()Method, that returns a list of the query objects. The data type of the list is important here, because order of the query objects is essential for the later calculations.- Returns:
- The query objects as a list.
-
getDependencies
List<Dependency> getDependencies()Method, that returns a list of the desired dependencies.- Returns:
- The desired dependencies as list.
-