001/**
002 * IrisSolution.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.extensions.classification.ClassificationSolution;
013
014/**
015 * Bean storing the solution for the Iris data base.
016 * @author Juan A. Recio-Garcia
017 * @version 1.0
018 */
019public class IrisSolution implements ClassificationSolution {
020
021        String type;
022        
023        /**
024         * Returns a String representation of this object.
025         * @return a String representation of this object.
026         */
027        public String toString()
028        {
029                return type;
030        }
031        
032        /**
033         * Returns the id attribute of this object.
034         * @return the id attribute of this object.
035         */
036        public Attribute getIdAttribute() {
037                return new Attribute("type", this.getClass());
038        }
039
040        /**
041         * @return Returns the type.
042         */
043        public String getType() {
044                return type;
045        }
046
047        /**
048         * @param type The type to set.
049         */
050        public void setType(String type) {
051                this.type = type;
052        }
053
054        public Object getClassification()
055        {
056            return type;
057        }
058        
059}