001/** 002 * IrisDescription.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 * 03/05/2007 008 */ 009package es.ucm.fdi.gaia.jcolibri.test.test7; 010 011import es.ucm.fdi.gaia.jcolibri.cbrcore.Attribute; 012import es.ucm.fdi.gaia.jcolibri.cbrcore.CaseComponent; 013 014/** 015 * Bean storing the description for the Iris data base. 016 * @author Juan A. Recio-Garcia 017 * @version 1.0 018 */ 019public class IrisDescription implements CaseComponent { 020 021 Double sepalLength; 022 Double sepalWidth; 023 Double petalLength; 024 Double petalWidth; 025 String id; 026 027 /** 028 * Returns a String representation of this object. 029 */ 030 public String toString() 031 { 032 return id+", "+sepalLength+", "+sepalWidth+", "+petalLength+", "+petalWidth; 033 } 034 035 /** 036 * Returns the id attribute of this object. 037 */ 038 public Attribute getIdAttribute() { 039 return new Attribute("id", this.getClass()); 040 } 041 042 /** 043 * @return Returns the id. 044 */ 045 public String getId() { 046 return id; 047 } 048 049 /** 050 * @param id The id to set. 051 */ 052 public void setId(String id) { 053 this.id = id; 054 } 055 056 /** 057 * @return Returns the petalLength. 058 */ 059 public Double getPetalLength() { 060 return petalLength; 061 } 062 063 /** 064 * @param petalLength The petalLength to set. 065 */ 066 public void setPetalLength(Double petalLength) { 067 this.petalLength = petalLength; 068 } 069 070 /** 071 * @return Returns the petalWidth. 072 */ 073 public Double getPetalWidth() { 074 return petalWidth; 075 } 076 077 /** 078 * @param petalWidth The petalWidth to set. 079 */ 080 public void setPetalWidth(Double petalWidth) { 081 this.petalWidth = petalWidth; 082 } 083 084 /** 085 * @return Returns the sepalLength. 086 */ 087 public Double getSepalLength() { 088 return sepalLength; 089 } 090 091 /** 092 * @param sepalLength The sepalLength to set. 093 */ 094 public void setSepalLength(Double sepalLength) { 095 this.sepalLength = sepalLength; 096 } 097 098 /** 099 * @return Returns the sepalWidth. 100 */ 101 public Double getSepalWidth() { 102 return sepalWidth; 103 } 104 105 /** 106 * @param sepalWidth The sepalWidth to set. 107 */ 108 public void setSepalWidth(Double sepalWidth) { 109 this.sepalWidth = sepalWidth; 110 } 111}