001    /* PAVLOV -- Multiple Choice Study System
002     * Copyright (C) 2000 - 2004 T.J. Willis
003     * 
004     * This program is free software; you can redistribute it and/or
005     * modify it under the terms of the GNU General Public License
006     * as published by the Free Software Foundation; either version 2
007     * of the License, or (at your option) any later version.
008     *      
009     * This program is distributed in the hope that it will be useful,
010     * but WITHOUT ANY WARRANTY; without even the implied warranty of
011     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
012     * GNU General Public License for more details.
013     *          
014     * You should have received a copy of the GNU General Public License
015     * along with this program; if not, write to the Free Software
016     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
017     *  
018     * $Header: /cvsroot/pavlov/net/sourceforge/pavlov/user/QuizCollectionData.java,v 1.4 2004/05/19 03:12:14 tj_willis Exp $
019     */ 
020    package net.sourceforge.pavlov.user;
021    import org.apache.log4j.*;
022    
023    /**
024     * Describe class <code>QuizCollectionData</code> here.
025     *
026     * @author <a href="mailto:tj_willis@users.sourceforge.net"> T.J. Willis </a>
027     * @version $Revision: 1.4 $
028     */
029    public class QuizCollectionData {
030        // Unit coverage in TestQuiz.java
031        // FIXED: use accessors for all pub vars
032        // FIXME: make all vars private
033        /**
034         * Number of quizzes.
035         *
036         */
037        public int numQuizzes;
038    
039        /**
040         * Total number of questions asked.
041         *
042         */
043        public int totalAsked;
044        /**
045         * Total number of correct responses.
046         *
047         */
048        public int totalRight;
049        /**
050         * Total number of incorrect responses.
051         *
052         */
053        public int totalWrong;
054        /**
055         * Average number of questions asked per quiz.
056         *
057         */
058        public double avgQuestionsPerQuiz;
059        
060    
061        /**
062         * Get the NumberOfQuizzes value.
063         * @return the NumberOfQuizzes value.
064         */
065        public int getNumberOfQuizzes() {
066            return numQuizzes;
067        }
068    
069        /**
070         * Set the NumberOfQuizzes value.
071         * @param newNumberOfQuizzes The new NumberOfQuizzes value.
072         */
073        public void setNumberOfQuizzes(final int newNumberOfQuizzes) {
074            this.numQuizzes = newNumberOfQuizzes;
075        }
076    
077        /**
078         * Get the TotalAsked value.
079         * @return the TotalAsked value.
080         */
081        public int getTotalAsked() {
082            return totalAsked;
083        }
084    
085        /**
086         * Set the TotalAsked value.
087         * @param newTotalAsked The new TotalAsked value.
088         */
089        public void setTotalAsked(final int newTotalAsked) {
090            this.totalAsked = newTotalAsked;
091        }
092    
093        /**
094         * Get the TotalRight value.
095         * @return the TotalRight value.
096         */
097        public int getTotalRight() {
098            return totalRight;
099        }
100    
101        /**
102         * Set the TotalRight value.
103         * @param newTotalRight The new TotalRight value.
104         */
105        public void setTotalRight(final int newTotalRight) {
106            this.totalRight = newTotalRight;
107        }
108    
109    
110        /**
111         * Get the TotalWrong value.
112         * @return the TotalWrong value.
113         */
114        public int getTotalWrong() {
115            return totalWrong;
116        }
117    
118        /**
119         * Set the TotalWrong value.
120         * @param newTotalWrong The new TotalWrong value.
121         */
122        public void setTotalWrong(final int newTotalWrong) {
123            this.totalWrong = newTotalWrong;
124        }
125    
126        /**
127         * Get the AverageQuestionsPerQuiz value.
128         * @return the AverageQuestionsPerQuiz value.
129         */
130        public double getAverageQuestionsPerQuiz() {
131            return avgQuestionsPerQuiz;
132        }
133    
134        /**
135         * Set the AverageQuestionsPerQuiz value.
136         * @param newAverageQuestionsPerQuiz The new AverageQuestionsPerQuiz value.
137         */
138        public void setAverageQuestionsPerQuiz(final double newAverageQuestionsPerQuiz) {
139            this.avgQuestionsPerQuiz = newAverageQuestionsPerQuiz;
140        }
141    
142        
143    
144    }