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 011import es.ucm.fdi.gaia.jcolibri.extensions.recommendation.casesDisplay.UserChoice; 012 013 014/** 015 * Conditional method that checks if the user choice is 016 * BUY the case. 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 BuyOrQuit 024{ 025 /** 026 * Returns true if the choice is a case. 027 * @param choice of the user 028 */ 029 public static boolean buyOrQuit(UserChoice choice) 030 { 031 return choice.isBuy(); 032 } 033 034}