edu.indiana.iucbrf.retrieval
Class AbstractRetrieval
java.lang.Object
edu.indiana.iucbrf.retrieval.AbstractRetrieval
- All Implemented Interfaces:
- Retrieval, java.io.Serializable
- Direct Known Subclasses:
- kNN, ThresholdRetrieval
public abstract class AbstractRetrieval
- extends java.lang.Object
- implements java.io.Serializable, Retrieval
A general abstract implementation of Retrieval.
- See Also:
- Serialized Form
Method Summary |
RetrievalConditionsChecker |
getConditionsChecker()
|
boolean |
getDebugMode()
|
RetrievalResults |
getNearest(CaseBase CB,
Problem p,
Context currentContext)
Gets the Case(s) in the case base most similar to a. |
RetrievalResults |
getNearest(CaseBase CB,
Problem p,
Context currentContext,
java.util.Collection indicesToUse)
Gets the Case(s) in the case base most similar to a. |
RetrievalResults |
getNearest(java.util.Iterator caseIter,
Problem p,
Context currentContext)
|
RetrievalResults |
getNearest(java.util.Iterator caseIter,
Problem p,
Context currentContext,
java.util.Collection indicesToUse)
|
ProblemDifferentiator |
getProblemDifferentiator()
|
protected void |
handleDebugMode(CaseBase CB,
Problem p)
|
void |
setConditionsChecker(RetrievalConditionsChecker conditionsChecker)
|
void |
setDebugMode(boolean debugMode)
|
void |
setProblemDifferentiator(ProblemDifferentiator problemDifferentiator)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
debugMode
protected boolean debugMode
problemDifferentiator
protected ProblemDifferentiator problemDifferentiator
conditionsChecker
protected RetrievalConditionsChecker conditionsChecker
AbstractRetrieval
protected AbstractRetrieval()
AbstractRetrieval
public AbstractRetrieval(ProblemDifferentiator problemDifferentiator)
AbstractRetrieval
public AbstractRetrieval(ProblemDifferentiator problemDifferentiator,
RetrievalConditionsChecker conditionsChecker)
- Creates new AbstractRetrieval
getProblemDifferentiator
public ProblemDifferentiator getProblemDifferentiator()
- Specified by:
getProblemDifferentiator
in interface Retrieval
setProblemDifferentiator
public void setProblemDifferentiator(ProblemDifferentiator problemDifferentiator)
- Specified by:
setProblemDifferentiator
in interface Retrieval
getDebugMode
public boolean getDebugMode()
- Specified by:
getDebugMode
in interface Retrieval
setDebugMode
public void setDebugMode(boolean debugMode)
- Specified by:
setDebugMode
in interface Retrieval
getNearest
public RetrievalResults getNearest(CaseBase CB,
Problem p,
Context currentContext)
- Description copied from interface:
Retrieval
- Gets the Case(s) in the case base most similar to a.
- Specified by:
getNearest
in interface Retrieval
- Parameters:
CB
- The case basep
- The problem
getNearest
public RetrievalResults getNearest(CaseBase CB,
Problem p,
Context currentContext,
java.util.Collection indicesToUse)
- Gets the Case(s) in the case base most similar to a.
- Specified by:
getNearest
in interface Retrieval
- Parameters:
CB
- The case basep
- The problem
getNearest
public RetrievalResults getNearest(java.util.Iterator caseIter,
Problem p,
Context currentContext)
- Specified by:
getNearest
in interface Retrieval
getNearest
public RetrievalResults getNearest(java.util.Iterator caseIter,
Problem p,
Context currentContext,
java.util.Collection indicesToUse)
- Specified by:
getNearest
in interface Retrieval
handleDebugMode
protected void handleDebugMode(CaseBase CB,
Problem p)
setConditionsChecker
public void setConditionsChecker(RetrievalConditionsChecker conditionsChecker)
- Specified by:
setConditionsChecker
in interface Retrieval
getConditionsChecker
public RetrievalConditionsChecker getConditionsChecker()
- Specified by:
getConditionsChecker
in interface Retrieval