package grade; import datatypes.Text; /** * This dialog is used when grading an essay question or a short-answer question on a student's test. */ public abstract class EssayGrader { /** * The current quesiton being graded. */ public String question; /** * The teacher answer key. */ public String answer; /** * The student's response. */ public String studentAnswer; /** * The number of points the student receives. */ public abstract Text points(); public abstract void setPoints(Text text); /** * The point value of this question. */ public String totalPoints; /** * Returns to the last graded student. */ public abstract void previousStudent(); /** * Proceeds to the next student. */ public abstract void nextStudent(); /** * Completes grading of this question and takes the user to the question * screen for the test. */ public abstract void done(); }