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