001/** 002 * TravelSolution.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 * 07/06/2007 008 */ 009package es.ucm.fdi.gaia.jcolibri.test.test10; 010 011import es.ucm.fdi.gaia.jcolibri.cbrcore.Attribute; 012import es.ucm.fdi.gaia.jcolibri.cbrcore.CaseComponent; 013import es.ucm.fdi.gaia.jcolibri.datatypes.Instance; 014 015/** 016 * Bean that stores the solution of the case. 017 * @author Juan A. Recio-Garcia 018 * @version 1.0 019 */ 020public class TravelSolution implements CaseComponent{ 021 022 Instance mainConcept; 023 Instance price; 024 025 public String toString() 026 { 027 return "("+mainConcept+";"+price+")"; 028 } 029 030 public Attribute getIdAttribute() { 031 032 return new Attribute("mainConcept", this.getClass()); 033 } 034 /** 035 * @return Returns the id. 036 */ 037 public Instance getMainConcept() { 038 return mainConcept; 039 } 040 041 /** 042 * @param mc The main concept to set. 043 */ 044 public void setMainConcept(Instance mc) { 045 this.mainConcept = mc; 046 } 047 048 /** 049 * @return Returns the price. 050 */ 051 public Instance getPrice() { 052 return price; 053 } 054 055 /** 056 * @param price The price to set. 057 */ 058 public void setPrice(Instance price) { 059 this.price = price; 060 } 061 062 063 064}