001    /**
002     * HouseDescription.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 description.
016     * @author Juan A. Recio-Garcia
017     * @version 1.0
018     *
019     */
020    public class HouseDescription implements CaseComponent
021    {
022        public enum Beds  {StudioFlat,one,two,three,four,five,six,seven};
023        public enum Type  {Flat,House};
024        public enum Area  {Acton,Addlestone,Alperton,Balham,Barnes,Battersea,Bayswater,Belsize_Park,Bermondsey,Bloomsbury,Brentford,Brixton,Brondesbury,Byfleet,Camden,Canary_Wharf,Chelsea,Chiswick,Clapham,Clerkenwell,Cricklewood,Croyden,Earls_Court,Egham,Finchley,Finsbury,Fulham,Golders_Green,Greenwich,Hammersmith,Hampstead,Highgate,Holland_Park,Holloway,Hornsey,Hounslow,Hyde_Park,Islington,Kensington,Kilburn,Kings_Cross,Kingston,Knightsbridge,Lambeth,Little_Venice,Maida_Vale,Marylebone,Mayfair,Mitcham,Notting_Hill,Paddington,Parsons_Green,Pimlico,Primrose_Hill,Putney,Regents_Park,Richmond,Shepherds_Bush,Shoreditch,Soho,South_Kensington,Southwark,St_Johns_Wood,Stepney,Streatham,Swiss_Cottage,The_City,Tooting,Twickenham,Walton_on_Thames,Wandsworth,Wapping,West_Ham,West_Horsley,West_Kensington,Westminster,Weybridge,Whitechapel,Willesden,Wimbledon};
025            
026        Integer id;
027        Area area;
028        Beds beds;
029        Integer price;
030        Boolean furnished;
031        Type type;
032        Integer baths;
033        
034        public String toString() 
035        {
036                    return "("+id+";"+area+";"+beds+";"+price+";"+furnished+";"+type+";"+baths+")";
037        }
038    
039    
040        public Area getArea()
041        {
042            return area;
043        }
044    
045    
046        public void setArea(Area area)
047        {
048            this.area = area;
049        }
050    
051    
052        public Integer getBaths()
053        {
054            return baths;
055        }
056    
057    
058        public void setBaths(Integer baths)
059        {
060            this.baths = baths;
061        }
062    
063    
064        public Beds getBeds()
065        {
066            return beds;
067        }
068    
069    
070        public void setBeds(Beds beds)
071        {
072            this.beds = beds;
073        }
074    
075    
076        public Boolean getFurnished()
077        {
078            return furnished;
079        }
080    
081    
082        public void setFurnished(Boolean furnished)
083        {
084            this.furnished = furnished;
085        }
086    
087    
088        public Integer getId()
089        {
090            return id;
091        }
092    
093    
094        public void setId(Integer id)
095        {
096            this.id = id;
097        }
098    
099    
100        public Integer getPrice()
101        {
102            return price;
103        }
104    
105    
106        public void setPrice(Integer price)
107        {
108            this.price = price;
109        }
110    
111        
112        public Type getType()
113        {
114            return type;
115        }
116    
117    
118        public void setType(Type type)
119        {
120            this.type = type;
121        }
122    
123    
124        /* (non-Javadoc)
125         * @see jcolibri.cbrcore.CaseComponent#getIdAttribute()
126         */
127        public Attribute getIdAttribute()
128        {
129            return new Attribute("id",this.getClass());
130        }
131    
132    }