student
Class Test

java.lang.Object
  extended by student.Test

public class Test
extends java.lang.Object


Field Summary
 int classId
           
 int difficulty
           
 int length
           
 java.util.ArrayList<java.lang.Object> questions
           
 
Constructor Summary
Test(int diff, java.util.ArrayList<java.lang.Object> questions, int classId)
          Creates a new test.
 
Method Summary
 boolean addQuestion(java.lang.Object ques)
          Adds a Question to the test's list of questions.
 boolean deleteQuestion(java.lang.Object ques)
          Deletes a question from the test.
 void setDifficulty(int diff)
          Set's the difficult of a test.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

classId

public int classId

difficulty

public int difficulty

length

public int length

questions

public java.util.ArrayList<java.lang.Object> questions
Constructor Detail

Test

public Test(int diff,
            java.util.ArrayList<java.lang.Object> questions,
            int classId)
Creates a new test.

Parameters:
diff - The test's difficulty.
questions - A list of the questions within a test.
classId - The test's associated class id.
Method Detail

addQuestion

public boolean addQuestion(java.lang.Object ques)
Adds a Question to the test's list of questions.

Parameters:
ques - The question to be added.

deleteQuestion

public boolean deleteQuestion(java.lang.Object ques)
Deletes a question from the test.

Parameters:
ques - The question to be deleted from the test.

setDifficulty

public void setDifficulty(int diff)
Set's the difficult of a test.

Parameters:
diff - The difficultly rating to set the test too.