public class CachedLinealCaseBase extends Object implements CBRCaseBase
This class presents better performance that LinelCaseBase as only access to the persistence once. This case base is used for evaluation.
LinealCaseBase| Constructor and Description |
|---|
CachedLinealCaseBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the case base saving or deleting the cases of the persistence media
|
void |
forgetCases(Collection<CBRCase> cases)
Forgets cases.
|
Collection<CBRCase> |
getCases()
Returns working cases.
|
Collection<CBRCase> |
getCases(CaseBaseFilter filter)
TODO.
|
void |
init(Connector connector)
Initializes the Case Base with the cases read from the given connector.
|
void |
learnCases(Collection<CBRCase> cases)
Learns cases that are only saved when closing the Case Base.
|
public CachedLinealCaseBase()
public void close()
close in interface CBRCaseBasepublic void forgetCases(Collection<CBRCase> cases)
forgetCases in interface CBRCaseBasecases - to be removedpublic Collection<CBRCase> getCases()
getCases in interface CBRCaseBasepublic Collection<CBRCase> getCases(CaseBaseFilter filter)
getCases in interface CBRCaseBasefilter - a case base filterpublic void init(Connector connector) throws InitializingException
init in interface CBRCaseBaseInitializingExceptionpublic void learnCases(Collection<CBRCase> cases)
learnCases in interface CBRCaseBasecases - to be addedCopyright © 2018 Group of Artificial Intelligence Applications (GAIA). All rights reserved.