001 /** 002 * RemoveRetrievalEvaluation.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 * 30/05/2007 008 */ 009 package jcolibri.method.retrieve; 010 011 import java.util.ArrayList; 012 import java.util.Collection; 013 014 import jcolibri.cbrcore.CBRCase; 015 016 /** 017 * Removes the evaluation value from the <case,evaluation> pair of the Collection<RetrievalResult> and returns a Collection<CBRCase> list. 018 * @author Juan A. Recio-Garcia 019 * @version 1.0 020 */ 021 public class RemoveRetrievalEvaluation { 022 023 /** 024 * Removes the evaluation value from the <case,evaluation> pair of the Collection<RetrievalResult> and returns a Collection<CBRCase> list. 025 */ 026 public static Collection<CBRCase> removeRetrievalEvaluation(Collection<RetrievalResult> rrList) 027 { 028 Collection<CBRCase> res = new ArrayList<CBRCase>(); 029 for(RetrievalResult rr: rrList) 030 res.add(rr.get_case()); 031 return res; 032 } 033 }