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