001    /**
002     * Rating.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     * 11/11/2007
008     */
009    package jcolibri.test.recommenders.rec12.moviesDB;
010    
011    import jcolibri.cbrcore.Attribute;
012    import jcolibri.cbrcore.CaseComponent;
013    
014    /**
015     * Bean that represents a rating
016     * @author Juan A. Recio-Garcia
017     * @author Developed at University College Cork (Ireland) in collaboration with Derek Bridge.
018     * @version 1.0
019     *
020     */
021    public class Rating implements CaseComponent
022    {
023        Integer id;
024        Integer rating;
025        
026        public String toString()
027        {
028            return id+","+rating;
029        }
030        
031        /**
032         * @return Returns the id.
033         */
034        public Integer getId()
035        {
036            return id;
037        }
038        /**
039         * @param id The id to set.
040         */
041        public void setId(Integer id)
042        {
043            this.id = id;
044        }
045        /**
046         * @return Returns the rating.
047         */
048        public Integer getRating()
049        {
050            return rating;
051        }
052        /**
053         * @param rating The rating to set.
054         */
055        public void setRating(Integer rating)
056        {
057            this.rating = rating;
058        }
059        
060        public Attribute getIdAttribute()
061        {
062            return new Attribute("id",Rating.class);
063        }
064    
065        
066    }