edu.indiana.iucbrf.retrieval
Class RisingThresholdRetrieval

java.lang.Object
  extended by edu.indiana.iucbrf.retrieval.AbstractRetrieval
      extended by edu.indiana.iucbrf.retrieval.ThresholdRetrieval
          extended by edu.indiana.iucbrf.retrieval.RisingThresholdRetrieval
All Implemented Interfaces:
Retrieval, java.io.Serializable

public class RisingThresholdRetrieval
extends ThresholdRetrieval

Title:

Description: The same as ThresholdRetrieval, except, if a retrieval yields 0 cases, then the current threshold is set to multiplier*baseThreshold.

Copyright: Copyright (c) 2005

Company:

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class edu.indiana.iucbrf.retrieval.ThresholdRetrieval
ThresholdRetrieval.ThresholdConditionsChecker
 
Field Summary
protected  double baseThreshold
           
protected  double multiplier
           
protected  double recentActualThreshold
           
 
Fields inherited from class edu.indiana.iucbrf.retrieval.AbstractRetrieval
conditionsChecker, debugMode, problemDifferentiator
 
Constructor Summary
protected RisingThresholdRetrieval()
           
  RisingThresholdRetrieval(Domain domain, double threshold, double multiplier)
           
  RisingThresholdRetrieval(ProblemDifferentiator problemDifferentiator, double threshold, double multiplier)
          Creates a new instance of ThresholdRetrieval
 
Method Summary
 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)
           
 RetrievalResults getNearestRec(CaseBase CB, Problem p, Context currentContext, java.util.Collection indicesToUse)
           
 double getRecentActualThreshold()
           
protected  void resetThreshold()
           
 void setMultiplier(double multiplier)
           
 void setParams(java.lang.Object[] params)
           
protected  void temporaryIncreaseThreshold()
           
 
Methods inherited from class edu.indiana.iucbrf.retrieval.ThresholdRetrieval
getThreshold, setThreshold
 
Methods inherited from class edu.indiana.iucbrf.retrieval.AbstractRetrieval
getConditionsChecker, getDebugMode, getNearest, getProblemDifferentiator, handleDebugMode, setConditionsChecker, setDebugMode, setProblemDifferentiator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

multiplier

protected double multiplier

baseThreshold

protected double baseThreshold

recentActualThreshold

protected double recentActualThreshold
Constructor Detail

RisingThresholdRetrieval

protected RisingThresholdRetrieval()

RisingThresholdRetrieval

public RisingThresholdRetrieval(Domain domain,
                                double threshold,
                                double multiplier)

RisingThresholdRetrieval

public RisingThresholdRetrieval(ProblemDifferentiator problemDifferentiator,
                                double threshold,
                                double multiplier)
Creates a new instance of ThresholdRetrieval

Method Detail

setParams

public void setParams(java.lang.Object[] params)
Specified by:
setParams in interface Retrieval
Overrides:
setParams in class ThresholdRetrieval

setMultiplier

public void setMultiplier(double multiplier)

temporaryIncreaseThreshold

protected void temporaryIncreaseThreshold()

resetThreshold

protected void resetThreshold()

getRecentActualThreshold

public double getRecentActualThreshold()

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
Overrides:
getNearest in class AbstractRetrieval
Parameters:
CB - The case base
p - The problem

getNearest

public RetrievalResults getNearest(java.util.Iterator caseIter,
                                   Problem p,
                                   Context currentContext)
Specified by:
getNearest in interface Retrieval
Overrides:
getNearest in class AbstractRetrieval

getNearest

public RetrievalResults getNearest(java.util.Iterator caseIter,
                                   Problem p,
                                   Context currentContext,
                                   java.util.Collection indicesToUse)
Specified by:
getNearest in interface Retrieval
Overrides:
getNearest in class AbstractRetrieval

getNearestRec

public RetrievalResults getNearestRec(CaseBase CB,
                                      Problem p,
                                      Context currentContext,
                                      java.util.Collection indicesToUse)