edu.indiana.iucbrf.examples.realtor
Class RealtorMaintenance

java.lang.Object
  extended by edu.indiana.iucbrf.maintenance.Maintenance
      extended by edu.indiana.iucbrf.maintenance.NullMaintenance
          extended by edu.indiana.iucbrf.examples.realtor.RealtorMaintenance
All Implemented Interfaces:
java.io.Serializable

public class RealtorMaintenance
extends NullMaintenance

This maintenance policy does none of the standard maintenance approaches (hence extending NullMaintenance) except that it provides a method to remove the "worst" case.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class edu.indiana.iucbrf.maintenance.Maintenance
checkRemoveFrequency
 
Constructor Summary
protected RealtorMaintenance()
          This constructor exists for serialization purposes only.
  RealtorMaintenance(CaseBase CB)
          Creates new RealtorMaintenance
 
Method Summary
 Case removeWorstCase()
          Remove the "worst" case: the lowest percentage of successful uses - where the case contributed to a solution that was deemed successful.
 
Methods inherited from class edu.indiana.iucbrf.maintenance.NullMaintenance
removeUnneededCases, shouldAddCase, shouldRemoveCase
 
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
 

Constructor Detail

RealtorMaintenance

protected RealtorMaintenance()
This constructor exists for serialization purposes only.


RealtorMaintenance

public RealtorMaintenance(CaseBase CB)
Creates new RealtorMaintenance

Method Detail

removeWorstCase

public Case removeWorstCase()
Remove the "worst" case: the lowest percentage of successful uses - where the case contributed to a solution that was deemed successful. Expensive (going through entire case base), but is just used to demonstrate a reaction to CaseBaseListener events. This method is called in reaction to case base event received by RealtorCaseBaseListener.