jcolibri.method.maintenance
Class CompetenceModel

java.lang.Object
  extended by jcolibri.method.maintenance.CompetenceModel

public class CompetenceModel
extends java.lang.Object

Computes the competence model for a given case base.

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

Constructor Summary
CompetenceModel()
           
 
Method Summary
 void computeCompetenceModel(SolvesFunction solves, KNNClassificationConfig knnConfig, java.util.Collection<CBRCase> cases)
          Computes the competence model for the given cases using the given solves function.
 java.util.Collection<CBRCase> getCoverageSet(CBRCase c)
          Returns the coverage set of the given case.
 java.util.Map<CBRCase,java.util.Collection<CBRCase>> getCoverageSets()
          Returns the coverage sets of the case base.
 java.util.Collection<CBRCase> getLiabilitySet(CBRCase c)
          Returns the liability set of the given case.
 java.util.Map<CBRCase,java.util.Collection<CBRCase>> getLiabilitySets()
          Returns the liability sets of the case base.
 java.util.Collection<CBRCase> getReachabilitySet(CBRCase c)
          Returns the reachability set of the given case.
 java.util.Map<CBRCase,java.util.Collection<CBRCase>> getReachabilitySets()
          Returns the reachability sets of the case base.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompetenceModel

public CompetenceModel()
Method Detail

computeCompetenceModel

public void computeCompetenceModel(SolvesFunction solves,
                                   KNNClassificationConfig knnConfig,
                                   java.util.Collection<CBRCase> cases)
Computes the competence model for the given cases using the given solves function.

Parameters:
solves - the function to use to find which cases solve a query case.
knnConfig -
cases - the cases for which the competence model is being computed.

getCoverageSet

public java.util.Collection<CBRCase> getCoverageSet(CBRCase c)
                                             throws InitializingException
Returns the coverage set of the given case.

Parameters:
c - the case whose coverage set is being retrieved.
Returns:
the coverage set of c.
Throws:
InitializingException - Indicates that the competence model has not yet been computed.

getReachabilitySet

public java.util.Collection<CBRCase> getReachabilitySet(CBRCase c)
                                                 throws InitializingException
Returns the reachability set of the given case.

Parameters:
c - the case whose reachability set is being retrieved.
Returns:
the reachability set of c.
Throws:
InitializingException - Indicates that the competence model has not yet been computed.

getLiabilitySet

public java.util.Collection<CBRCase> getLiabilitySet(CBRCase c)
                                              throws InitializingException
Returns the liability set of the given case.

Parameters:
c - the case whose liability set is being retrieved.
Returns:
the liability set of c.
Throws:
InitializingException - Indicates that the competence model has not yet been computed.

getCoverageSets

public java.util.Map<CBRCase,java.util.Collection<CBRCase>> getCoverageSets()
Returns the coverage sets of the case base.

Returns:
the coverage sets of the case base.

getReachabilitySets

public java.util.Map<CBRCase,java.util.Collection<CBRCase>> getReachabilitySets()
Returns the reachability sets of the case base.

Returns:
the reachability sets of the case base.

getLiabilitySets

public java.util.Map<CBRCase,java.util.Collection<CBRCase>> getLiabilitySets()
Returns the liability sets of the case base.

Returns:
the liability sets of the case base.

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