es.ucm.fdi.gaia.jcolibri.casebase.IDIndexedLinealCaseBase Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jCOLIBRI Show documentation
Show all versions of jCOLIBRI Show documentation
jCOLIBRI is a java framework for the development of Case-Based Reasoning systems.
package es.ucm.fdi.gaia.jcolibri.casebase;
import java.util.Collection;
import java.util.HashMap;
import es.ucm.fdi.gaia.jcolibri.cbrcore.CBRCase;
import es.ucm.fdi.gaia.jcolibri.cbrcore.CBRCaseBase;
import es.ucm.fdi.gaia.jcolibri.cbrcore.CaseBaseFilter;
import es.ucm.fdi.gaia.jcolibri.cbrcore.Connector;
import es.ucm.fdi.gaia.jcolibri.exception.AttributeAccessException;
/**
* 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)
*
* @author Juan A. Recio-García
*
*/
public class IDIndexedLinealCaseBase implements CBRCaseBase {
private Connector connector;
private Collection cases;
private HashMap