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.rec8.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 * @author Developed at University College Cork (Ireland) in collaboration with Derek Bridge. 018 * @version 1.0 019 * 020 */ 021 public class HouseSolution implements CaseComponent 022 { 023 Integer id; 024 String address; 025 Integer price; 026 027 public String toString() 028 { 029 return "("+id+";"+address+")"; 030 } 031 032 public String getAddress() 033 { 034 return address; 035 } 036 037 038 039 public void setAddress(String address) 040 { 041 this.address = address; 042 } 043 044 045 046 public Integer getId() 047 { 048 return id; 049 } 050 051 052 053 public void setId(Integer id) 054 { 055 this.id = id; 056 } 057 058 public Integer getPrice() 059 { 060 return price; 061 } 062 063 064 public void setPrice(Integer price) 065 { 066 this.price = price; 067 } 068 069 /* (non-Javadoc) 070 * @see jcolibri.cbrcore.CaseComponent#getIdAttribute() 071 */ 072 public Attribute getIdAttribute() 073 { 074 return new Attribute("id",this.getClass()); 075 } 076 077 }