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 */ 009package es.ucm.fdi.gaia.jcolibri.extensions.recommendation.conditionals; 010 011 012import es.ucm.fdi.gaia.jcolibri.extensions.recommendation.casesDisplay.UserChoice; 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 UserChoice 022 */ 023public 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}