public abstract class TestTaking
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) java.util.Collection<java.lang.String> |
answers |
(package private) int |
timer |
Constructor and Description |
---|
TestTaking() |
Modifier and Type | Method and Description |
---|---|
(package private) abstract Question |
getQuestion(int qIndex)
Method sets the answer for a mutiple choice question.
|
(package private) abstract void |
setAnswerFile(int qIndex,
java.lang.String filename)
Method sets the answer for a mutiple choice question.
|
(package private) abstract void |
setAnswerFill(int qIndex,
java.lang.String answer)
Method sets the answer for a mutiple choice question.
|
(package private) abstract void |
setAnswerMC(int qIndex,
java.util.Collection<java.lang.Integer> aIndex)
Method sets the answer for a mutiple choice question.
|
(package private) abstract void |
submitTest()
Method sets the answer for a mutiple choice question.
|
abstract void setAnswerMC(int qIndex, java.util.Collection<java.lang.Integer> aIndex)
qIndex
- - the index of the question int the databaseaIndex
- - the index of the answer
test must be already in thes userdb
index must be between 0 and the total number of answers.abstract void setAnswerFill(int qIndex, java.lang.String answer)
qIndex
- - the index of the question int he databaseanswer
- - string resresenting the answer
question must be already in the databaseabstract void setAnswerFile(int qIndex, java.lang.String filename)
qIndex
- - the index of the question int he databasefilename
- - the name of the file submitted
question must be already in the database
filename must existabstract Question getQuestion(int qIndex)
qIndex
- - the index of the question int he database
question must be already in the databaseabstract void submitTest()