public class Retrieval extends java.util.HashMap<Instance,Similarity> implements java.lang.Runnable
| Modifier and Type | Class and Description |
|---|---|
static class |
Retrieval.RetrievalMethod |
| Constructor and Description |
|---|
Retrieval(Concept c,
ICaseBase cb) |
Retrieval(Concept c,
ICaseBase cb,
RetrievalEngine re) |
| Modifier and Type | Method and Description |
|---|---|
ICaseBase |
getCaseBase() |
int |
getK() |
Instance |
getQueryInstance() |
java.util.List<Pair<Instance,Similarity>> |
getResult() |
RetrievalEngine |
getRetrievalEngine() |
Retrieval.RetrievalMethod |
getRetrievalMethod() |
boolean |
isFinished() |
Instance |
resetQuery()
Set all attributes to undefined
|
void |
run() |
void |
setCaseBase(ICaseBase cb) |
void |
setK(int k) |
void |
setRetrievalEngine(RetrievalEngine re) |
void |
setRetrievalMethod(Retrieval.RetrievalMethod m) |
void |
start() |
public Retrieval(Concept c, ICaseBase cb)
c - the query should be an instance of this conceptpublic Retrieval(Concept c, ICaseBase cb, RetrievalEngine re)
c - the query should be an instance of this conceptpublic final void start()
java.lang.Exception - if something goes wrong during retrievalpublic void setRetrievalEngine(RetrievalEngine re)
public RetrievalEngine getRetrievalEngine()
public void setCaseBase(ICaseBase cb)
public ICaseBase getCaseBase()
public Instance getQueryInstance()
public Instance resetQuery()
public void setK(int k)
public int getK()
public final void setRetrievalMethod(Retrieval.RetrievalMethod m)
m - the current retrieval methodpublic boolean isFinished()
public final Retrieval.RetrievalMethod getRetrievalMethod()
public void run()
run in interface java.lang.Runnablepublic java.util.List<Pair<Instance,Similarity>> getResult()