jcolibri.method.maintenance
Class SolvesFunction

java.lang.Object
  extended by jcolibri.method.maintenance.SolvesFunction
Direct Known Subclasses:
CBESolvesFunction, ICFSolvesFunction

public abstract class SolvesFunction
extends java.lang.Object

Abstract class for a solves function that will decide which cases solve a query.

Author:
Lisa Cummins, Derek Bridge 22/05/07

Field Summary
protected  java.util.Collection<CBRCase> misclassifyQ
           
protected  java.util.Collection<CBRCase> solveQ
           
 
Constructor Summary
SolvesFunction()
           
 
Method Summary
 java.util.Collection<CBRCase> getCasesThatMisclassifiedQuery()
          Returns the cases that contributed to the misclassification of the last query for which cases were divided.
 java.util.Collection<CBRCase> getCasesThatSolvedQuery()
          Returns the cases that solved the last query for which cases were divided.
abstract  void setCasesThatSolveAndMisclassifyQ(CBRCase q, java.util.Collection<CBRCase> cases, KNNClassificationConfig knnConfig)
          Sets the classes that both solve q or contribute to its misclassification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

solveQ

protected java.util.Collection<CBRCase> solveQ

misclassifyQ

protected java.util.Collection<CBRCase> misclassifyQ
Constructor Detail

SolvesFunction

public SolvesFunction()
Method Detail

setCasesThatSolveAndMisclassifyQ

public abstract void setCasesThatSolveAndMisclassifyQ(CBRCase q,
                                                      java.util.Collection<CBRCase> cases,
                                                      KNNClassificationConfig knnConfig)
Sets the classes that both solve q or contribute to its misclassification

Parameters:
q - the query
cases - from which to find the cases which solve and classify the query. These include the query itself.
knnConfig - the similarity configuration

getCasesThatSolvedQuery

public java.util.Collection<CBRCase> getCasesThatSolvedQuery()
Returns the cases that solved the last query for which cases were divided.

Returns:
the cases that solved the last query for which cases were divided.

getCasesThatMisclassifiedQuery

public java.util.Collection<CBRCase> getCasesThatMisclassifiedQuery()
Returns the cases that contributed to the misclassification of the last query for which cases were divided. were divided.

Returns:
the cases that contributed to the misclassification of the last query for which cases were divided. were divided.

GAIA - Group for Artificial Intelligence Applications
http://gaia.fdi.ucm.es