public abstract class RetrievalEngine
extends java.lang.Object
| Constructor and Description |
|---|
RetrievalEngine() |
| Modifier and Type | Method and Description |
|---|---|
Instance |
getCurrentCase() |
abstract java.util.List<Pair<Instance,Similarity>> |
retrieve(ICaseBase cb,
Instance q) |
abstract java.util.List<Pair<Instance,Similarity>> |
retrieveK(ICaseBase cb,
Instance q,
int k) |
abstract java.util.List<Pair<Instance,Similarity>> |
retrieveKSorted(ICaseBase cb,
Instance q,
int k) |
abstract java.util.List<Pair<Instance,Similarity>> |
retrieveSorted(ICaseBase cb,
Instance q) |
void |
setCurrentCase(Instance c) |
public abstract java.util.List<Pair<Instance,Similarity>> retrieve(ICaseBase cb, Instance q) throws java.lang.Exception
cb - the case base this retrieval should be run onq - the current queryjava.lang.Exception - if something goes wrong during similarity computationspublic abstract java.util.List<Pair<Instance,Similarity>> retrieveSorted(ICaseBase cb, Instance q) throws java.lang.Exception
cb - the case base this retrieval should be run onq - the current queryjava.lang.Exception - if something goes wrong during similarity computationspublic abstract java.util.List<Pair<Instance,Similarity>> retrieveK(ICaseBase cb, Instance q, int k) throws java.lang.Exception
cb - the case base this retrieval should be run onq - the current queryk - the number of cases to be returnedjava.lang.Exception - if something goes wrong during similarity computationspublic abstract java.util.List<Pair<Instance,Similarity>> retrieveKSorted(ICaseBase cb, Instance q, int k) throws java.lang.Exception
cb - the case base this retrieval should be run onq - the current queryk - the number of cases to be returnedjava.lang.Exception - if something goes wrong during similarity computationspublic final void setCurrentCase(Instance c)
c - the new current casepublic final Instance getCurrentCase()