jcolibri.cbrcore
Interface CBRCaseBase

All Known Implementing Classes:
CachedLinealCaseBase, IDIndexedLinealCaseBase, LinealCaseBase, MatrixCaseBase, PearsonMatrixCaseBase

public interface CBRCaseBase

This interface defines the methods that at least any Case Base must implement to be transparently used by the framework.

A Case Base is the in-memory organization of the cases. Cases are read from the persistence media an loaded into an implementation of this interface. Further implementations will provide cache mechanisms, optimized organizations, etc.

Author:
Juan A. Recio-García

Method Summary
 void close()
          DeInitializes the case base.
 void forgetCases(java.util.Collection<CBRCase> cases)
          Removes a collection of new CBRCase objects to the current case base
 java.util.Collection<CBRCase> getCases()
          Returns all the cases available on this case base
 java.util.Collection<CBRCase> getCases(CaseBaseFilter filter)
          Returns some cases depending on the filter
 void init(Connector connector)
          Initializes the case base.
 void learnCases(java.util.Collection<CBRCase> cases)
          Adds a collection of new CBRCase objects to the current case base
 

Method Detail

init

void init(Connector connector)
          throws InitializingException
Initializes the case base. This methods recibes the connector that manages the persistence media.

Throws:
InitializingException

close

void close()
DeInitializes the case base.


getCases

java.util.Collection<CBRCase> getCases()
Returns all the cases available on this case base

Returns:
all the cases available on this case base

getCases

java.util.Collection<CBRCase> getCases(CaseBaseFilter filter)
Returns some cases depending on the filter

Parameters:
filter - a case base filter
Returns:
a collection of cases

learnCases

void learnCases(java.util.Collection<CBRCase> cases)
Adds a collection of new CBRCase objects to the current case base

Parameters:
cases - to be added

forgetCases

void forgetCases(java.util.Collection<CBRCase> cases)
Removes a collection of new CBRCase objects to the current case base

Parameters:
cases - to be removed

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