public class SequentialRetrieval extends RetrievalEngine
| Constructor and Description |
|---|
SequentialRetrieval(Project p,
Retrieval r) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Pair<Instance,Similarity>> |
retrieve(ICaseBase cb,
Instance q) |
java.util.List<Pair<Instance,Similarity>> |
retrieveK(ICaseBase cb,
Instance q,
int k) |
java.util.List<Pair<Instance,Similarity>> |
retrieveKSorted(ICaseBase cb,
Instance q,
int k) |
java.util.List<Pair<Instance,Similarity>> |
retrieveSorted(ICaseBase cb,
Instance q) |
getCurrentCase, setCurrentCasepublic final java.util.List<Pair<Instance,Similarity>> retrieve(ICaseBase cb, Instance q) throws java.lang.Exception
retrieve in class RetrievalEnginecb - the case base this retrieval should be run onq - the current queryjava.lang.Exception - if something goes wrong during similarity computationspublic final java.util.List<Pair<Instance,Similarity>> retrieveK(ICaseBase cb, Instance q, int k) throws java.lang.Exception
retrieveK in class RetrievalEnginecb - 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 java.util.List<Pair<Instance,Similarity>> retrieveKSorted(ICaseBase cb, Instance q, int k) throws java.lang.Exception
retrieveKSorted in class RetrievalEnginecb - 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 java.util.List<Pair<Instance,Similarity>> retrieveSorted(ICaseBase cb, Instance q) throws java.lang.Exception
retrieveSorted in class RetrievalEnginecb - the case base this retrieval should be run onq - the current queryjava.lang.Exception - if something goes wrong during similarity computations