001    /**
002     * Travel Recommender example for the jCOLIBRI2 framework. 
003     * @author Juan A. Recio-García.
004     * GAIA - Group for Artificial Intelligence Applications
005     * http://gaia.fdi.ucm.es
006     * 25/07/2006
007     */
008    package jcolibri.test.recommenders.travelData;
009    
010    import jcolibri.cbrcore.Attribute;
011    
012    /**
013     * Bean that stores the solution of the case (trip)
014     * @author Juan A. Recio-Garcia
015     * @author Developed at University College Cork (Ireland) in collaboration with Derek Bridge.
016     * @version 1.0
017     */
018    public class TravelSolution  implements jcolibri.cbrcore.CaseComponent {
019    
020            String id;
021            String hotel;
022            
023            public String toString()
024            {
025                    return "("+id+";"+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    }