001/**
002 * FilterPredicate.java
003 * jCOLIBRI2 framework. 
004 * @author Juan A. Recio-Garc�a.
005 * GAIA - Group for Artificial Intelligence Applications
006 * http://gaia.fdi.ucm.es
007 * 28/10/2007
008 */
009package es.ucm.fdi.gaia.jcolibri.method.retrieve.FilterBasedRetrieval.predicates;
010
011import es.ucm.fdi.gaia.jcolibri.exception.NoApplicableFilterPredicateException;
012
013/**
014 * Interface for Predicates
015 * @author Juan A. Recio-Garcia
016 * @author Developed at University College Cork (Ireland) in collaboration with Derek Bridge.
017 * @version 1.0
018 *
019 */
020public interface FilterPredicate
021{
022    /**
023     * Computes the predicate
024     * @param caseObject is the object of the case being compared
025     * @param queryObject is the object of the query being compared
026     * @return the result of the comparation
027     * @throws NoApplicableFilterPredicateException if the predicate cannot be applied to those objects.
028     */
029    public boolean compute(Object caseObject, Object queryObject) throws NoApplicableFilterPredicateException;
030}