edu.indiana.iucbrf.maintenance
Class NullMaintenance
java.lang.Object
edu.indiana.iucbrf.maintenance.Maintenance
edu.indiana.iucbrf.maintenance.NullMaintenance
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- RealtorMaintenance
public class NullMaintenance
- extends Maintenance
This class implements a simple maintenance procedure that never removes cases, and never adds them.
It may be especially useful in testing a system when the case base should not be changed over the course of
the testing.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NullMaintenance
public NullMaintenance()
- Creates new NullMaintenance
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.
shouldRemoveCase
public boolean shouldRemoveCase(Case currentCase,
CaseBase CB,
PerformanceMonitor monitor)
- This method always returns false. No cases should ever be removed.
- Specified by:
shouldRemoveCase
in class Maintenance
shouldAddCase
public boolean shouldAddCase(Case currentCase,
SolutionQuality quality,
RetrievalResults retrieved,
CaseBase CB,
PerformanceMonitor monitor)
- This method always returns false. No cases should ever be added.
- Specified by:
shouldAddCase
in class Maintenance