|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.indiana.iucbrf.maintenance.Maintenance
public abstract class Maintenance
The base Maintenance class, which can be extended to provide details of maintenance.
Field Summary | |
---|---|
protected int |
checkRemoveFrequency
|
Constructor Summary | |
---|---|
Maintenance()
Creates new Maintenance |
Method Summary | |
---|---|
int |
getCheckRemoveFrequency()
Get the frequency of the checks for case removal. |
void |
removeUnneededCases(CaseBase CB,
PerformanceMonitor monitor)
Remove unneeded cases from the case base, if shouldRemoveCase() returns true for that case. |
void |
setCheckRemoveFrequency(int checkRemoveFrequency)
|
abstract 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. |
abstract 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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int checkRemoveFrequency
Constructor Detail |
---|
public Maintenance()
Method Detail |
---|
public void removeUnneededCases(CaseBase CB, PerformanceMonitor monitor)
CB
- The case base which is scheduled for maintenance.public abstract boolean shouldRemoveCase(Case currentCase, CaseBase CB, PerformanceMonitor monitor)
public abstract boolean shouldAddCase(Case currentCase, SolutionQuality quality, RetrievalResults retrieved, CaseBase CB, PerformanceMonitor monitor)
public void setCheckRemoveFrequency(int checkRemoveFrequency)
public int getCheckRemoveFrequency()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |