student
Class Test
java.lang.Object
student.Test
public class Test
- extends java.lang.Object
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 |
classId
public int classId
difficulty
public int difficulty
length
public int length
questions
public java.util.ArrayList<java.lang.Object> questions
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.
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.