|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcolibri.casebase.CachedLinealCaseBase
public class CachedLinealCaseBase
Cached case base that only persists cases when closing. learn() and forget() are not synchronized with the persistence until close() is invoked.
This class presents better performance that LinelCaseBase as only access to the persistence once. This case base is used for evaluation.
LinealCaseBase
Constructor Summary | |
---|---|
CachedLinealCaseBase()
|
Method Summary | |
---|---|
void |
close()
Closes the case base saving or deleting the cases of the persistence media |
void |
forgetCases(java.util.Collection<CBRCase> cases)
Forgets cases. |
java.util.Collection<CBRCase> |
getCases()
Returns working cases. |
java.util.Collection<CBRCase> |
getCases(CaseBaseFilter filter)
TODO. |
void |
init(Connector connector)
Initializes the Case Base with the cases read from the given connector. |
void |
learnCases(java.util.Collection<CBRCase> cases)
Learns cases that are only saved when closing the Case Base. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CachedLinealCaseBase()
Method Detail |
---|
public void close()
close
in interface CBRCaseBase
public void forgetCases(java.util.Collection<CBRCase> cases)
forgetCases
in interface CBRCaseBase
cases
- to be removedpublic java.util.Collection<CBRCase> getCases()
getCases
in interface CBRCaseBase
public java.util.Collection<CBRCase> getCases(CaseBaseFilter filter)
getCases
in interface CBRCaseBase
filter
- a case base filter
public void init(Connector connector) throws InitializingException
init
in interface CBRCaseBase
InitializingException
public void learnCases(java.util.Collection<CBRCase> cases)
learnCases
in interface CBRCaseBase
cases
- to be added
|
GAIA - Group for Artificial Intelligence Applications http://gaia.fdi.ucm.es |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |