001/**
002 * TravelDescription.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 * 07/06/2007
008 */
009
010package es.ucm.fdi.gaia.jcolibri.test.test10;
011
012import es.ucm.fdi.gaia.jcolibri.cbrcore.Attribute;
013import es.ucm.fdi.gaia.jcolibri.cbrcore.CaseComponent;
014import es.ucm.fdi.gaia.jcolibri.datatypes.Instance;
015
016/**
017 * Bean that stores the description of the case.
018 * 
019 * @author Juan A. Recio-Garcia
020 * @version 1.0
021 */
022public class TravelDescription implements CaseComponent {
023        
024        Instance  mainConcept;
025        Instance  HolidayType;
026        Instance  NumberOfPersons;
027        Instance  Destination;
028        Instance  Transportation;
029        Instance  Duration;
030        Instance  Season;
031        Instance  Accommodation;
032        
033        
034        public String toString()
035        {
036                return "("+mainConcept+";"+HolidayType+";"+NumberOfPersons+";"+Destination+";"+Transportation+";"+Duration+";"+Season+";"+Accommodation+")";
037        }
038        
039        /**
040         * @return the accomodation
041         */
042        public Instance getAccommodation() {
043                return Accommodation;
044        }
045        /**
046         * @param accomodation the accomodation to set
047         */
048        public void setAccommodation(Instance accomodation) {
049                Accommodation = accomodation;
050        }
051        /**
052         * @return the caseId
053         */
054        public Instance getCaseId() {
055                return mainConcept;
056        }
057        /**
058         * @param mc the main concept to set
059         */
060        public void setMainConcept(Instance mc) {
061                this.mainConcept = mc;
062        }
063        /**
064         * @return Returns the mainConcept.
065         */
066        public Instance getMainConcept() {
067                return mainConcept;
068        }
069        /**
070         * @return the duration
071         */
072        public Instance getDuration() {
073                return Duration;
074        }
075        /**
076         * @param duration the duration to set
077         */
078        public void setDuration(Instance duration) {
079                Duration = duration;
080        }
081        /**
082         * @return the holidayType
083         */
084        public Instance getHolidayType() {
085                return HolidayType;
086        }
087        /**
088         * @param holidayType the holidayType to set
089         */
090        public void setHolidayType(Instance holidayType) {
091                HolidayType = holidayType;
092        }
093        /**
094         * @return the numberOfPersons
095         */
096        public Instance getNumberOfPersons() {
097                return NumberOfPersons;
098        }
099        /**
100         * @param numberOfPersons the numberOfPersons to set
101         */
102        public void setNumberOfPersons(Instance numberOfPersons) {
103                NumberOfPersons = numberOfPersons;
104        }
105
106        /**
107         * @return the destination
108         */
109        public Instance getDestination() {
110                return Destination;
111        }
112        /**
113         * @param destination the destination to set
114         */
115        public void setDestination(Instance destination) {
116                Destination = destination;
117        }
118        /**
119         * @return the season
120         */
121        public Instance getSeason() {
122                return Season;
123        }
124        /**
125         * @param season the season to set
126         */
127        public void setSeason(Instance season) {
128                Season = season;
129        }
130        /**
131         * @return the transportation
132         */
133        public Instance getTransportation() {
134                return Transportation;
135        }
136        /**
137         * @param transportation the transportation to set
138         */
139        public void setTransportation(Instance transportation) {
140                Transportation = transportation;
141        }
142        
143        public Attribute getIdAttribute() {
144                return new Attribute("mainConcept", this.getClass());
145        }
146
147
148}