Class DependencyQueryImpl
java.lang.Object
de.uni_trier.wi2.procake.retrieval.impl.QueryImpl
de.uni_trier.wi2.procake.retrieval.impl.DependencyQueryImpl
- All Implemented Interfaces:
DependencyQuery
,Query
Implementation of
DependencyQuery
.- Author:
- Rahol Kumar, Alexander Schultheis
-
Field Summary
Fields inherited from interface de.uni_trier.wi2.procake.retrieval.Query
DEFAULT_MINSIMILARITY, DEFAULT_NUMBEROFRESULTS, DEFAULT_RETRIEVECASES
-
Constructor Summary
-
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.<T extends DataObject>
TMethod, that returns a list of the query objects.void
setQueryObject
(DataObject queryObject) Methods inherited from class de.uni_trier.wi2.procake.retrieval.impl.QueryImpl
fromXML, getMinSimilarity, getNumberOfResults, isRetrieveCases, setMinSimilarity, setNumberOfResults, 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, isRetrieveCases, setMinSimilarity, setNumberOfResults, setRetrieveCases, toXML, toXML
-
Constructor Details
-
DependencyQueryImpl
public DependencyQueryImpl()
-
-
Method Details
-
setQueryObject
- Specified by:
setQueryObject
in interfaceQuery
- Overrides:
setQueryObject
in classQueryImpl
-
getQueryObject
- Specified by:
getQueryObject
in interfaceQuery
- Overrides:
getQueryObject
in classQueryImpl
-
addQueryObject
Description copied from interface:DependencyQuery
Method, that adds a new query object to the dependency query.- Specified by:
addQueryObject
in interfaceDependencyQuery
- Parameters:
queryObject
- Data object to be used in the query.
-
addDependency
Description copied from interface:DependencyQuery
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.- Specified by:
addDependency
in interfaceDependencyQuery
- Parameters:
dependency
- The dependency to be added to the query.
-
getQueryObjects
Description copied from interface:DependencyQuery
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.- Specified by:
getQueryObjects
in interfaceDependencyQuery
- Returns:
- The query objects as a list.
-
getDependencies
Description copied from interface:DependencyQuery
Method, that returns a list of the desired dependencies.- Specified by:
getDependencies
in interfaceDependencyQuery
- Returns:
- The desired dependencies as list.
-