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