001    /**
002     * Region.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     * 10/01/2007
008     */
009    package jcolibri.test.test5;
010    
011    import jcolibri.cbrcore.Attribute;
012    
013    /**
014     * Compound attribute that stores the information of the region in the travel description.
015     * @author Juan A. Recio-Garcia
016     * @version 1.0
017     * @see jcolibri.test.test5.TravelDescription
018     */
019    public class Region implements jcolibri.cbrcore.CaseComponent {
020            Integer id;
021            String region;
022            String city;
023            String airport;
024            String currency;
025            
026    
027            public String toString()
028            {
029                    return "("+id+","+region+","+city+","+airport+","+currency+")";
030            }
031            
032            
033            /**
034             * @return the airport
035             */
036            public String getAirport() {
037                    return airport;
038            }
039            /**
040             * @param airport the airport to set
041             */
042            public void setAirport(String airport) {
043                    this.airport = airport;
044            }
045            /**
046             * @return the city
047             */
048            public String getCity() {
049                    return city;
050            }
051            /**
052             * @param city the city to set
053             */
054            public void setCity(String city) {
055                    this.city = city;
056            }
057            /**
058             * @return the currency
059             */
060            public String getCurrency() {
061                    return currency;
062            }
063            /**
064             * @param currency the currency to set
065             */
066            public void setCurrency(String currency) {
067                    this.currency = currency;
068            }
069            /**
070             * @return the id
071             */
072            public Integer getId() {
073                    return id;
074            }
075            /**
076             * @param id the id to set
077             */
078            public void setId(Integer id) {
079                    this.id = id;
080            }
081            /**
082             * @return the region
083             */
084            public String getRegion() {
085                    return region;
086            }
087            /**
088             * @param region the region to set
089             */
090            public void setRegion(String region) {
091                    this.region = region;
092            }
093            
094            
095            public Attribute getIdAttribute() {
096                    return new Attribute("id", this.getClass());
097            }
098    }