package grade;

import java.util.List;
import course.*;

/**
 * A TestAttempt takes a list of question attempts and creates a user's attempt
 * at answering all the questions on a test. This is what is graded by a user,
 * and it is derived from Section 2.6, Test Grading.
 */
public abstract class TestAttempt
{
	/**
	 * The test that the attempt is for.
	 */
	Test test;
	/**
	 * The total score on all questions on the test.
	 */
	int score;
	/**
	 * The maximum sum of the total score on all questions on the test. 
	 */
	int maxScore;

	/**
	* Creates a test attempt object from a list of testattempts
	* @param test The test of which this is a test attempt
	* @param attempts A list of question attempts that make up this test attempt
	*/
	public TestAttempt(Test test, List<QuestionAttempt> attempts)
	{

	}
	/**
	* Returns the list of question attempts that make up this test attempt
	* @return a list of the question attempts that make up this test attempt
	*/
	public abstract List<QuestionAttempt> getQuestionAttempts();

}