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