|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttesttool.teacher_app.grade_view.GradeTest
public abstract class GradeTest
The GradeTest class is derived from the Test Grader View in Section 2.6 of the requirements. It provides operations for the teacher to grade tests. This class contains a Lecture field that has course and section information for the test. The second data field is a list of each student's test to be graded. The last field is the currently selected test that is being graded by the user.
Nested Class Summary | |
---|---|
private static class |
GradeTest.QuestionSort
QuestionSort resembles all the ways you can sort the questions of each test. |
private static class |
GradeTest.TestSort
TestSort resembles all the ways you can sort the list of tests. |
Field Summary | |
---|---|
private Test |
currentTest
|
private Lecture |
lecture
|
private java.util.List<Test> |
tests
|
Constructor Summary | |
---|---|
GradeTest()
|
Method Summary | |
---|---|
abstract void |
gradeTests()
gradeTests automatically grades all questions with exact answers for every test in this.tests. |
abstract void |
sendToGradingProgram()
sendToGradingProgram sends this.tests to the grader program. |
abstract void |
setScore(int question,
int correct,
int possible)
setScore modifies this.currentTest.questions.get(question).score with correct and possible parameters. |
abstract void |
sortQuestions(GradeTest.QuestionSort sortFlag)
sortQuestions sorts this.currentTest.questions by the order specified by the parameter sortFlag. |
abstract void |
sortTests(GradeTest.TestSort sortFlag)
sortTests sorts this.tests by the order specified by the parameter sortFlag. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Lecture lecture
private java.util.List<Test> tests
private Test currentTest
Constructor Detail |
---|
public GradeTest()
Method Detail |
---|
public abstract void gradeTests()
public abstract void sendToGradingProgram()
public abstract void sortTests(GradeTest.TestSort sortFlag)
public abstract void sortQuestions(GradeTest.QuestionSort sortFlag)
public abstract void setScore(int question, int correct, int possible)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |