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

es.ucm.fdi.gaia.jcolibri.method.maintenance.SolvesFunction 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
package es.ucm.fdi.gaia.jcolibri.method.maintenance;


import java.util.Collection;

import es.ucm.fdi.gaia.jcolibri.cbrcore.CBRCase;
import es.ucm.fdi.gaia.jcolibri.method.reuse.classification.KNNClassificationConfig;

/**
 * Abstract class for a solves function that will decide which cases 
 * solve a query.
 * 
 * @author Lisa Cummins
 * @author Derek Bridge
 * 22/05/07
 */
public abstract class SolvesFunction
{
	protected Collection solveQ;
	
	protected Collection misclassifyQ;
	
	/**
	 * Sets the classes that both solve q or contribute to its 
	 * misclassification
	 * @param q the query
	 * @param cases from which to find the cases which solve
	 * and classify the query. These include the query itself. 
	 * @param knnConfig the similarity configuration
	 */
	public abstract void setCasesThatSolveAndMisclassifyQ(CBRCase q, Collection cases, KNNClassificationConfig knnConfig);

	/**
	 * Returns the cases that solved the last query for which cases
	 * were divided.
	 * @return the cases that solved the last query for which cases
	 * were divided.
     */
	public Collection getCasesThatSolvedQuery()
	{	return solveQ;
	}
	
	/**
	 * Returns the cases that contributed to the misclassification
	 * of the last query for which cases were divided.
	 * were divided.
	 * @return the cases that contributed to the misclassification
	 * of the last query for which cases were divided.
	 * were divided.
     */
	public Collection getCasesThatMisclassifiedQuery()
	{	return misclassifyQ;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy