Interface DependencyQuery
-
- All Superinterfaces:
Query
- All Known Implementing Classes:
DependencyQueryImpl
public interface DependencyQuery extends Query
Interface, that provides a description of a dependency query to be used inRetriever.perform(Query). A dependency query object can be created usingDependencyRetriever.newQuery(). Unlike the standardQuery, 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddDependency(Dependency dependency)Method, that adds a dependency to the query.voidaddQueryObject(DataObject queryObject)Method, that adds a new query object to the dependency query.List<Dependency>getDependencies()Method, that returns a list of the desired dependencies.List<DataObject>getQueryObjects()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 Detail
-
addQueryObject
void addQueryObject(DataObject queryObject)
Method, that adds a new query object to the dependency query.- Parameters:
queryObject- Data object to be used in the query.
-
addDependency
void addDependency(Dependency dependency)
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.
-
-