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.test6;
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        public String toString()
028        {
029                return id+", "+sepalLength+", "+sepalWidth+", "+petalLength+", "+petalWidth;
030        }
031        
032        public Attribute getIdAttribute() {
033                return new Attribute("id", this.getClass());
034        }
035
036        /**
037         * @return Returns the id.
038         */
039        public String getId() {
040                return id;
041        }
042
043        /**
044         * @param id The id to set.
045         */
046        public void setId(String id) {
047                this.id = id;
048        }
049
050        /**
051         * @return Returns the petalLength.
052         */
053        public Double getPetalLength() {
054                return petalLength;
055        }
056
057        /**
058         * @param petalLength The petalLength to set.
059         */
060        public void setPetalLength(Double petalLength) {
061                this.petalLength = petalLength;
062        }
063
064        /**
065         * @return Returns the petalWidth.
066         */
067        public Double getPetalWidth() {
068                return petalWidth;
069        }
070
071        /**
072         * @param petalWidth The petalWidth to set.
073         */
074        public void setPetalWidth(Double petalWidth) {
075                this.petalWidth = petalWidth;
076        }
077
078        /**
079         * @return Returns the sepalLength.
080         */
081        public Double getSepalLength() {
082                return sepalLength;
083        }
084
085        /**
086         * @param sepalLength The sepalLength to set.
087         */
088        public void setSepalLength(Double sepalLength) {
089                this.sepalLength = sepalLength;
090        }
091
092        /**
093         * @return Returns the sepalWidth.
094         */
095        public Double getSepalWidth() {
096                return sepalWidth;
097        }
098
099        /**
100         * @param sepalWidth The sepalWidth to set.
101         */
102        public void setSepalWidth(Double sepalWidth) {
103                this.sepalWidth = sepalWidth;
104        }
105
106        
107        
108}