edu.indiana.iucbrf.maintenance
Class ThresholdBasedAdditionMaintenance

java.lang.Object
  extended by edu.indiana.iucbrf.maintenance.Maintenance
      extended by edu.indiana.iucbrf.maintenance.ThresholdBasedAdditionMaintenance
All Implemented Interfaces:
java.io.Serializable

public class ThresholdBasedAdditionMaintenance
extends Maintenance

See Also:
Serialized Form

Field Summary
protected  double minAllowedDistance
           
protected  ProblemDifferentiator problemDifferentiator
           
 
Fields inherited from class edu.indiana.iucbrf.maintenance.Maintenance
checkRemoveFrequency
 
Constructor Summary
ThresholdBasedAdditionMaintenance(Domain domain, double minAllowedDistance)
          Creates a new instance of ThresholdBasedAdditionMaintenance
 
Method Summary
 void removeUnneededCases(CaseBase CB, PerformanceMonitor monitor)
          This method overrides the super version to do nothing.
 boolean shouldAddCase(Case currentCase, SolutionQuality quality, RetrievalResults retrieved, CaseBase CB, PerformanceMonitor monitor)
          Determine whether or not a case should be added to the case base.
 boolean shouldRemoveCase(Case currentCase, CaseBase CB, PerformanceMonitor monitor)
          Determine whether or not a case should be removed from the case base.
 
Methods inherited from class edu.indiana.iucbrf.maintenance.Maintenance
getCheckRemoveFrequency, setCheckRemoveFrequency
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

minAllowedDistance

protected double minAllowedDistance

problemDifferentiator

protected ProblemDifferentiator problemDifferentiator
Constructor Detail

ThresholdBasedAdditionMaintenance

public ThresholdBasedAdditionMaintenance(Domain domain,
                                         double minAllowedDistance)
Creates a new instance of ThresholdBasedAdditionMaintenance

Method Detail

shouldRemoveCase

public boolean shouldRemoveCase(Case currentCase,
                                CaseBase CB,
                                PerformanceMonitor monitor)
Determine whether or not a case should be removed from the case base.

Specified by:
shouldRemoveCase in class Maintenance

shouldAddCase

public boolean shouldAddCase(Case currentCase,
                             SolutionQuality quality,
                             RetrievalResults retrieved,
                             CaseBase CB,
                             PerformanceMonitor monitor)
Determine whether or not a case should be added to the case base.

Specified by:
shouldAddCase in class Maintenance

removeUnneededCases

public void removeUnneededCases(CaseBase CB,
                                PerformanceMonitor monitor)
This method overrides the super version to do nothing. No cases are ever removed.

Overrides:
removeUnneededCases in class Maintenance
Parameters:
CB - The case base which is scheduled for maintenance.