001 /** 002 * HouseSolution.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 * 26/10/2007 008 */ 009 package jcolibri.test.recommenders.housesData; 010 011 import jcolibri.cbrcore.Attribute; 012 import jcolibri.cbrcore.CaseComponent; 013 014 /** 015 * Implements the house soluction 016 * @author Juan A. Recio-Garcia 017 * @version 1.0 018 * 019 */ 020 public class HouseSolution implements CaseComponent 021 { 022 Integer id; 023 String address; 024 025 public String toString() 026 { 027 return "("+id+";"+address+")"; 028 } 029 030 public String getAddress() 031 { 032 return address; 033 } 034 035 036 037 public void setAddress(String address) 038 { 039 this.address = address; 040 } 041 042 043 044 public Integer getId() 045 { 046 return id; 047 } 048 049 050 051 public void setId(Integer id) 052 { 053 this.id = id; 054 } 055 056 057 058 /* (non-Javadoc) 059 * @see jcolibri.cbrcore.CaseComponent#getIdAttribute() 060 */ 061 public Attribute getIdAttribute() 062 { 063 return new Attribute("id",this.getClass()); 064 } 065 066 }