|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.problets.tutor.BaseTutor
public abstract class BaseTutor
Serves as the base class for all the tutor classes such as OutputTutor, DebugTutor, StateTutor, etc.
Field Summary | |
---|---|
static java.lang.String |
DONT_KNOW_ANSWER
|
Fields inherited from interface org.problets.tutor.GradeConstants |
---|
CORRECT, GENERATED, gradeText, INCORRECT, MISSED, PARTIAL, TOTAL_STATS, UNATTEMPTED |
Constructor Summary | |
---|---|
BaseTutor(StudentModel inStudent,
CodeModel inCode,
LogModel inLog)
|
Method Summary | |
---|---|
void |
generateDelayedFeedback()
Forces the tutor to generate and save the grade and narration. |
java.util.Vector |
getActualAnswer()
Returns the correct answer for use by the client - Used for testing. |
java.util.Vector |
getGrade()
Returns the student's grade, actual answer and student answer. |
java.util.Vector |
getNarration()
Returns the adapted narration of code execution. |
abstract boolean |
gradeAnswer(AbstractLine studentAnswer)
|
static void |
main(java.lang.String[] args)
|
void |
setupProblem()
Sets up the problem for all three types of feedback |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DONT_KNOW_ANSWER
Constructor Detail |
---|
public BaseTutor(StudentModel inStudent, CodeModel inCode, LogModel inLog)
Method Detail |
---|
public java.util.Vector getGrade()
public java.util.Vector getNarration()
public java.util.Vector getActualAnswer()
public void setupProblem()
public void generateDelayedFeedback()
public abstract boolean gradeAnswer(AbstractLine studentAnswer)
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |