es.ucm.fdi.gaia.jcolibri.method.retain.StoreCasesMethod 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.
/**
* StoreCasesMethod.java
* jCOLIBRI2 framework.
* @author Juan A. Recio-Garc�a.
* GAIA - Group for Artificial Intelligence Applications
* http://gaia.fdi.ucm.es
* 05/01/2007
*/
package es.ucm.fdi.gaia.jcolibri.method.retain;
import java.util.ArrayList;
import java.util.List;
import es.ucm.fdi.gaia.jcolibri.cbrcore.CBRCase;
import es.ucm.fdi.gaia.jcolibri.cbrcore.CBRCaseBase;
/**
* Stores cases in the case base.
* @author Juan A. Recio-Garcia
*
*/
public class StoreCasesMethod {
/**
* Simple method that adds some cases to the case base invoking caseBase->learnCases().
*/
public static void storeCases(CBRCaseBase caseBase, List cases)
{
caseBase.learnCases(cases);
}
/**
* Simple method that add a case to the case base invoking caseBase->learnCases().
*/
public static void storeCase(CBRCaseBase caseBase, CBRCase _case)
{
List cases = new ArrayList();
cases.add(_case);
caseBase.learnCases(cases);
}
}