|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.indiana.iucbrf.performancemonitor.PerformanceMonitor
public class PerformanceMonitor
This class handles monitoring of performance characteristics of the CBR system. The CBR designer can extend this class to monitor additional features of the system.
Field Summary | |
---|---|
static int |
ADAPTATION_TIMER
|
protected boolean |
debugMode
Set to true to get diagnostic prints to screen. |
static int |
RETRIEVAL_TIMER
|
Constructor Summary | |
---|---|
PerformanceMonitor()
Creates new SystemPerformance |
|
PerformanceMonitor(boolean debugMode)
Creates new SystemPerformance |
Method Summary | |
---|---|
void |
beginClock(int timerCode)
Begin the clock, for tracking the execution time of some operation. |
java.lang.String |
caseByCaseReport(CaseBase CB)
Return a String of a performance report of each case in the case base. |
void |
endClock(int timerCode)
End the clock, for tracking the execution time of some operation. |
double |
getAverageAdaptationTime()
Get the average adaptation time for this CBR system. |
double |
getAverageRetrievalTime()
Get the average retrieval time for this CBR system. |
double |
getAverageSolutionQualityRating()
Get the average solution quality rating for this CBR system. |
double |
getProblemCount()
Get the number of problems that have been posed to the system associated with this monitor. |
double |
getSolvedWellPercentage()
Get the percentage of problems that were solved well, according to the domain-dependent implementation of PerformanceMonitor.determineSolutionQuality(). |
double |
getSystemAge()
Get the age of the CBR system associated with this monitor. |
double |
getSystemCompetenceRating()
Get the competence rating for this CBR system. |
double |
getSystemConsistencyRating()
Get the consistency rating for this CBR system. |
void |
performanceReport(java.lang.String title)
Open a new window with a performance report for the system with this performance monitor. |
void |
performanceReport(java.lang.String title,
CaseBase CB)
Open a new window with a performance report for the system with the given case base and this performance monitor. |
void |
resetMonitorData(CaseBase CB)
Resets all monitor data, for all cases and the case base as a whole. |
java.lang.String |
textReport(java.lang.String title,
CaseBase cb)
|
void |
updateCaseBaseStatus(RetrievalResults retrieved,
SolutionQuality quality)
Update the status of the CBR system monitors, according to the results of adapting the retrieved cases and finding a quality on a Solution, based on PerformanceMonitor.determineSolutionQuality(). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int RETRIEVAL_TIMER
public static final int ADAPTATION_TIMER
protected final boolean debugMode
Constructor Detail |
---|
public PerformanceMonitor()
public PerformanceMonitor(boolean debugMode)
debugMode
- Set to true to get diagnostic prints to screen. Otherwise set to false.Method Detail |
---|
public void updateCaseBaseStatus(RetrievalResults retrieved, SolutionQuality quality)
retrieved
- The cases that were retrieved, and hence, whose monitor components will be updated.quality
- The quality, according to PerformanceMonitor.determineSolutionQuality(), of the solution obtained by adapting the retrieved cases.public void resetMonitorData(CaseBase CB)
public void beginClock(int timerCode)
public void endClock(int timerCode)
public java.lang.String textReport(java.lang.String title, CaseBase cb)
public void performanceReport(java.lang.String title, CaseBase CB)
title
- The title of the performance report window.CB
- The case base on which case distributions may be shown.public void performanceReport(java.lang.String title)
title
- The title of the performance report window.public java.lang.String caseByCaseReport(CaseBase CB)
public double getAverageRetrievalTime()
public double getAverageAdaptationTime()
public double getSystemCompetenceRating()
public double getSystemConsistencyRating()
public double getAverageSolutionQualityRating()
public double getSolvedWellPercentage()
public double getProblemCount()
public double getSystemAge()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |