001/** 002 * SelectAttributeMethod.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 * 05/11/2007 008 */ 009package es.ucm.fdi.gaia.jcolibri.extensions.recommendation.navigationByAsking; 010 011 012import java.util.Collection; 013 014import es.ucm.fdi.gaia.jcolibri.cbrcore.Attribute; 015import es.ucm.fdi.gaia.jcolibri.cbrcore.CBRCase; 016import es.ucm.fdi.gaia.jcolibri.cbrcore.CBRQuery; 017import es.ucm.fdi.gaia.jcolibri.exception.ExecutionException; 018 019/** 020 * Interface for methods that select an attribute to be asked. 021 * 022 * @author Juan A. Recio-Garcia 023 * @author Developed at University College Cork (Ireland) in collaboration with Derek Bridge. 024 * @version 1.0 025 * 026 */ 027public interface SelectAttributeMethod 028{ 029 /** 030 * Selects the attribute to be asked 031 * @param cases list of working cases 032 * @param query is the current query 033 * @return selected attribute or null if there are not more attributes to ask. 034 * @throws ExecutionException 035 */ 036 public Attribute getAttribute(Collection<CBRCase> cases, CBRQuery query) throws ExecutionException; 037}