|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcolibri.casebase.IDIndexedLinealCaseBase
public class IDIndexedLinealCaseBase
This is a modification of LinealCaseBase that also keeps an index of cases using their IDs. Internally it uses a hash table that relates each ID with its corresponding case. It adds the method: getCase(Object ID)
Constructor Summary | |
---|---|
IDIndexedLinealCaseBase()
|
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 |
CBRCase |
getCase(java.lang.Object id)
Returns the case that corresponds with the id parameter. |
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 IDIndexedLinealCaseBase()
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 addedpublic CBRCase getCase(java.lang.Object id)
|
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 |