All Downloads are FREE. Search and download functionalities are using the official Maven repository.

es.ucm.fdi.gaia.jcolibri.method.retain.StoreCasesMethod Maven / Gradle / Ivy

Go to download

jCOLIBRI is a java framework for the development of Case-Based Reasoning systems.

There is a newer version: 3.2
Show newest version
/**
 * 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);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy