net.sourceforge.pavlov.user
Class QuizCollection

java.lang.Object
  extended by net.sourceforge.pavlov.user.QuizCollection

public class QuizCollection
extends Object

Data describing all the quizzes the user has taken on a given chapter.


Field Summary
protected  Vector<QuizData> quizzes
          List of quizzes.
 
Constructor Summary
QuizCollection()
          Creates a new QuizCollection instance.
 
Method Summary
 void addQuiz(QuizData q)
          Add a QuizData to the list.
 int getNumberOfQuizzes()
          Number of quizzes in this collection.
 Vector getPercentages()
          Returns a vector of EasyGraphDataItems representing quiz percentages in this collection.
 Vector getQuizzes()
          Describe getQuizzes method here.
 QuizCollectionData getStatistics()
          Returns descriptive statistics about these quizzes.
 void toXML(Writer writer)
          Dumps these quizzes as XML to the given writer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

quizzes

protected Vector<QuizData> quizzes
List of quizzes.

Constructor Detail

QuizCollection

public QuizCollection()
Creates a new QuizCollection instance.

Method Detail

getQuizzes

public Vector getQuizzes()
Describe getQuizzes method here.

Returns:
a Vector value

addQuiz

public void addQuiz(QuizData q)
Add a QuizData to the list.

Parameters:
q - a QuizData value

getNumberOfQuizzes

public int getNumberOfQuizzes()
Number of quizzes in this collection.

Returns:
an int value

getStatistics

public QuizCollectionData getStatistics()
Returns descriptive statistics about these quizzes.

Returns:
a QuizCollectionData value

toXML

public void toXML(Writer writer)
           throws IOException
Dumps these quizzes as XML to the given writer.

Parameters:
writer - a java.io.Writer value
Throws:
IOException - if an error occurs

getPercentages

public Vector getPercentages()
Returns a vector of EasyGraphDataItems representing quiz percentages in this collection.

Returns:
a Vector value