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 * 09/01/2007
008 */
009package es.ucm.fdi.gaia.jcolibri.test.test5;
010
011import es.ucm.fdi.gaia.jcolibri.cbrcore.Attribute;
012
013/**
014 * @author Juanan
015 *
016 */
017public class TravelSolution implements es.ucm.fdi.gaia.jcolibri.cbrcore.CaseComponent{
018
019        String id;
020        Integer price;
021        String hotel;
022        
023        public String toString()
024        {
025                return "("+id+";"+price+";"+hotel+")";
026        }
027        
028        public Attribute getIdAttribute() {
029                
030                return new Attribute("id", this.getClass());
031        }
032
033        /**
034         * @return Returns the hotel.
035         */
036        public String getHotel() {
037                return hotel;
038        }
039
040        /**
041         * @param hotel The hotel to set.
042         */
043        public void setHotel(String hotel) {
044                this.hotel = hotel;
045        }
046
047        /**
048         * @return Returns the id.
049         */
050        public String getId() {
051                return id;
052        }
053
054        /**
055         * @param id The id to set.
056         */
057        public void setId(String id) {
058                this.id = id;
059        }
060
061        /**
062         * @return Returns the price.
063         */
064        public Integer getPrice() {
065                return price;
066        }
067
068        /**
069         * @param price The price to set.
070         */
071        public void setPrice(Integer price) {
072                this.price = price;
073        }
074        
075        
076
077}