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
public class DependencyQueryImpl extends QueryImpl implements DependencyQuery
Implementation ofDependencyQuery.- 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
Constructors Constructor Description DependencyQueryImpl()
-
Method Summary
All Methods Instance Methods Concrete 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.<T extends DataObject>
TgetQueryObject()List<DataObject>getQueryObjects()Method, that returns a list of the query objects.voidsetQueryObject(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
-
-
-
-
Method Detail
-
setQueryObject
public void setQueryObject(DataObject queryObject)
- Specified by:
setQueryObjectin interfaceQuery- Overrides:
setQueryObjectin classQueryImpl
-
getQueryObject
public <T extends DataObject> T getQueryObject()
- Specified by:
getQueryObjectin interfaceQuery- Overrides:
getQueryObjectin classQueryImpl
-
addQueryObject
public void addQueryObject(DataObject queryObject)
Description copied from interface:DependencyQueryMethod, that adds a new query object to the dependency query.- Specified by:
addQueryObjectin interfaceDependencyQuery- Parameters:
queryObject- Data object to be used in the query.
-
addDependency
public void addDependency(Dependency dependency)
Description copied from interface:DependencyQueryMethod, 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:
addDependencyin interfaceDependencyQuery- Parameters:
dependency- The dependency to be added to the query.
-
getQueryObjects
public List<DataObject> getQueryObjects()
Description copied from interface:DependencyQueryMethod, 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:
getQueryObjectsin interfaceDependencyQuery- Returns:
- The query objects as a list.
-
getDependencies
public List<Dependency> getDependencies()
Description copied from interface:DependencyQueryMethod, that returns a list of the desired dependencies.- Specified by:
getDependenciesin interfaceDependencyQuery- Returns:
- The desired dependencies as list.
-
-