org.problets.tutor
Class SynthesisTutor

java.lang.Object
  extended by org.problets.tutor.BaseTutor
      extended by org.problets.tutor.SynthesisTutor
All Implemented Interfaces:
GradeConstants

public class SynthesisTutor
extends BaseTutor

Tutor to grade coding problems

Author:
Amruth Kumar Date: 2 / 19 / 2008

Field Summary
 
Fields inherited from class org.problets.tutor.BaseTutor
DONT_KNOW_ANSWER
 
Fields inherited from interface org.problets.tutor.GradeConstants
CORRECT, GENERATED, gradeText, INCORRECT, MISSED, PARTIAL, TOTAL_STATS, UNATTEMPTED
 
Constructor Summary
SynthesisTutor(StudentModel inStudent, CodeModel inCode, LogModel inLog)
           
 
Method Summary
 boolean gradeAnswer(AbstractLine studentAnswer)
          Grades the student's attempt at entering code for one segment, and returns true if the answer is correct and false otherwise.
static void main(java.lang.String[] args)
           
 
Methods inherited from class org.problets.tutor.BaseTutor
generateDelayedFeedback, getActualAnswer, getGrade, getNarration, setupProblem
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SynthesisTutor

public SynthesisTutor(StudentModel inStudent,
                      CodeModel inCode,
                      LogModel inLog)
Method Detail

gradeAnswer

public boolean gradeAnswer(AbstractLine studentAnswer)
Grades the student's attempt at entering code for one segment, and returns true if the answer is correct and false otherwise. Function meant to be called for immediate feedback and error-flagging purposes Eventually, this is meant to be part of a polymorphic hierarchy.

Specified by:
gradeAnswer in class BaseTutor

main

public static void main(java.lang.String[] args)