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     */
009    package jcolibri.method.retrieve.FilterBasedRetrieval.predicates;
010    
011    /**
012     * Interface for Predicates
013     * @author Juan A. Recio-Garcia
014     * @author Developed at University College Cork (Ireland) in collaboration with Derek Bridge.
015     * @version 1.0
016     *
017     */
018    public interface FilterPredicate
019    {
020        /**
021         * Computes the predicate
022         * @param caseObject is the object of the case being compared
023         * @param queryObject is the object of the query being compared
024         * @return the result of the comparation
025         * @throws jcolibri.exception.NoApplicableFilterPredicateException if the predicate cannot be applied to those objects.
026         */
027        public boolean compute(Object caseObject, Object queryObject) throws jcolibri.exception.NoApplicableFilterPredicateException;
028    }