|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcolibri.casebase.LinealCaseBase
public class LinealCaseBase
Basic Linal Case Base that stores cases into a List. This class does not includes any kind of caching mechanism. That way, if you call to learn() or forget() cases are automatically stored/removed to/from the persistence media. This will be a performance problem if you plan to learn/forget in multiple steps. This case base is unrecommended for evaluation.
Depending on your requirements the CachedLinealCaseBase could be more suitable.
CachedLinealCaseBase
Constructor Summary | |
---|---|
LinealCaseBase()
|
Method Summary | |
---|---|
void |
close()
DeInitializes the case base. |
void |
forgetCases(java.util.Collection<CBRCase> cases)
Removes a collection of new CBRCase objects to the current case base |
java.util.Collection<CBRCase> |
getCases()
Returns all the cases available on this case base |
java.util.Collection<CBRCase> |
getCases(CaseBaseFilter filter)
Returns some cases depending on the filter |
void |
init(Connector connector)
Initializes the case base. |
void |
learnCases(java.util.Collection<CBRCase> cases)
Adds a collection of new CBRCase objects to the current case base |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LinealCaseBase()
Method Detail |
---|
public void init(Connector connector)
CBRCaseBase
init
in interface CBRCaseBase
public void close()
CBRCaseBase
close
in interface CBRCaseBase
public void forgetCases(java.util.Collection<CBRCase> cases)
CBRCaseBase
forgetCases
in interface CBRCaseBase
cases
- to be removedpublic java.util.Collection<CBRCase> getCases()
CBRCaseBase
getCases
in interface CBRCaseBase
public java.util.Collection<CBRCase> getCases(CaseBaseFilter filter)
CBRCaseBase
getCases
in interface CBRCaseBase
filter
- a case base filter
public void learnCases(java.util.Collection<CBRCase> cases)
CBRCaseBase
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 |