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     */
009    package jcolibri.test.test6;
010    
011    import jcolibri.cbrcore.Attribute;
012    import jcolibri.cbrcore.CaseComponent;
013    
014    /**
015     * Bean storing the solution for the Iris data base
016     * @author Juan A. Recio-Garcia
017     * @version 1.0
018     */
019    public class IrisSolution implements CaseComponent {
020    
021            String type;
022            
023            public String toString()
024            {
025                    return type;
026            }
027            
028            public Attribute getIdAttribute() {
029                    return new Attribute("type", this.getClass());
030            }
031    
032            /**
033             * @return Returns the type.
034             */
035            public String getType() {
036                    return type;
037            }
038    
039            /**
040             * @param type The type to set.
041             */
042            public void setType(String type) {
043                    this.type = type;
044            }
045            
046    }