001    /**
002     * BuyOrQuit.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     * 24/10/2007
008     */
009    package jcolibri.extensions.recommendation.conditionals;
010    
011    import jcolibri.extensions.recommendation.casesDisplay.UserChoice;
012    
013    
014    /**
015     * Conditional method that checks if the user choice is
016     * REFINE_QUERY.
017     * 
018     * @author Juan A. Recio-Garcia
019     * @author Developed at University College Cork (Ireland) in collaboration with Derek Bridge.
020     * @version 1.0
021     * @see jcolibri.extensions.recommendation.casesDisplay.UserChoice
022     */
023    public class ContinueOrFinish
024    {
025        /**
026         * Returns true if the choice is UserChoice.REFINE_QUERY.
027         * @param choice of the user
028         */
029        public static boolean continueOrFinish(UserChoice choice)
030        {
031            return choice.isRefineQuery();
032        }
033        
034    }