|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.indiana.iucbrf.cbrsystem.CBRSystem
public abstract class CBRSystem
The CBRSystem component package is the overall wrapper for the case-based reasoning system. The CBRSystem class contains objects used to describe the particular implementation in use, for each of the major components of the system.
Field Summary | |
---|---|
protected Adaptation |
adaptation
The adaptation policy. |
protected java.lang.String |
baseFilename
|
protected CaseBase |
CB
The case base representation. |
protected Context |
currentContext
The context of the system defaults to Context.NORMAL_CONTEXT |
protected boolean |
debugMode
Set to true to get diagnostic prints to screen. |
static java.lang.String |
DEFAULT_BASE_FILENAME
|
protected Domain |
domain
The domain the system is working in. |
protected EpisodeSummaryPanel |
episodeSummaryPanel
|
protected boolean |
guiMode
|
protected Maintenance |
maintenance
The maintenance policy. |
protected PerformanceMonitor |
performanceMonitor
The means of tracking performance of the system. |
protected Retrieval |
retrieval
The retrieval policy. |
protected java.lang.String |
title
|
Constructor Summary | |
---|---|
CBRSystem()
Creates new CBRSystem. |
Method Summary | |
---|---|
void |
close()
|
protected void |
finalize()
|
Adaptation |
getAdaptation()
Get the adaptation specification for this system. |
java.lang.String |
getBaseFilename()
|
CaseBase |
getCB()
Get the case base for this system. |
Context |
getContext()
Get the current context of the system. |
boolean |
getDebugMode()
|
Domain |
getDomain()
Get the domain specification for this system. |
boolean |
getGUIMode()
|
Maintenance |
getMaintenance()
Get the maintenance specification for this system. |
PerformanceMonitor |
getPerformanceMonitor()
Get the performance monitor for this system. |
Retrieval |
getRetrieval()
Get the retrieval specification for this system. |
java.lang.String |
getTitle()
|
void |
loadCBFromFile(java.lang.String baseFilename)
|
void |
loadPerformanceMonitorFromFile(java.lang.String baseFilename)
|
void |
saveCBToFile(java.lang.String baseFilename)
|
void |
savePerformanceMonitorToFile(java.lang.String baseFilename)
|
void |
saveSystemToFile()
|
void |
setAdaptation(Adaptation adaptation)
Set the adaptation specification for this system. |
void |
setBaseFilename(java.lang.String baseFilename)
|
void |
setCB(CaseBase CB)
Set the case base for this system. |
void |
setContext(Context context)
Set the current context of the system. |
void |
setDebugMode(boolean debugMode)
|
void |
setDomain(Domain domain)
Set the domain specification for this system. |
void |
setGUIMode(boolean guiMode)
|
void |
setMaintenance(Maintenance maintenance)
Set the maintenance specification for this system. |
void |
setPerformanceMonitor(PerformanceMonitor performanceMonitor)
Set the performance monitor for this system. |
void |
setRetrieval(Retrieval retrieval)
Set the retrieval specification for this system. |
void |
setTitle(java.lang.String title)
|
Solution |
solve(Problem p)
Solve a problem according to the system specified by this object. |
Solution |
solve(Problem p,
Solution expectedSolution)
Solve a problem according to the system specified by this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DEFAULT_BASE_FILENAME
protected CaseBase CB
protected PerformanceMonitor performanceMonitor
protected Retrieval retrieval
protected Maintenance maintenance
protected Adaptation adaptation
protected Domain domain
protected boolean debugMode
protected boolean guiMode
protected EpisodeSummaryPanel episodeSummaryPanel
protected Context currentContext
protected java.lang.String baseFilename
protected java.lang.String title
Constructor Detail |
---|
public CBRSystem()
Method Detail |
---|
public Solution solve(Problem p)
p
- The Problem object that needs to be solved.
public Solution solve(Problem p, Solution expectedSolution)
p
- The Problem object that needs to be solved.expectedSolution
- The expected solution for this problem, to which the system's solution will be compared.
public void setContext(Context context)
public Context getContext()
public CaseBase getCB()
public void setCB(CaseBase CB)
public PerformanceMonitor getPerformanceMonitor()
public void setPerformanceMonitor(PerformanceMonitor performanceMonitor)
public Retrieval getRetrieval()
public void setRetrieval(Retrieval retrieval)
public Maintenance getMaintenance()
public void setMaintenance(Maintenance maintenance)
public Adaptation getAdaptation()
public void setAdaptation(Adaptation adaptation)
public Domain getDomain()
public void setDomain(Domain domain)
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
public java.lang.String getBaseFilename()
public void setBaseFilename(java.lang.String baseFilename)
public void setDebugMode(boolean debugMode)
public boolean getDebugMode()
public void setGUIMode(boolean guiMode)
public boolean getGUIMode()
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public void close()
public void saveSystemToFile()
public void saveCBToFile(java.lang.String baseFilename)
public void loadCBFromFile(java.lang.String baseFilename)
public void savePerformanceMonitorToFile(java.lang.String baseFilename)
public void loadPerformanceMonitorFromFile(java.lang.String baseFilename)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |