|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.problets.domain.line.AbstractLine
org.problets.domain.line.CodeSegmentAttempt
public class CodeSegmentAttempt
CodeSegmentAttempt Records one attempt of the student to answer one segment of the code; Maintains the correct answer for the attempt, and tutor's explanation of the grading.
Field Summary |
---|
Fields inherited from class org.problets.domain.line.AbstractLine |
---|
UNASSIGNED_LINE |
Constructor Summary | |
---|---|
CodeSegmentAttempt(int inLineNumber,
java.lang.String inInstructions,
java.lang.String inTemplate,
java.lang.String inActualCode,
java.lang.String inStudentCode,
boolean inCorrect,
DomainModel inSource)
|
Method Summary | |
---|---|
void |
addToExplanation(java.lang.String entry)
Adds another string to the explanation for the grading of the student's answer |
boolean |
equals(CodeSegmentAttempt newAttempt)
Returns true if this CodeSegmentAttempt is for the same line number, instructions and template as the new CodeSegmentAttempt and false otherwise |
java.lang.String |
getActualCode()
Returns the actual code for this segment |
java.util.Vector |
getExplanation()
Returns the explanation generated for this student's answer so far |
java.lang.String |
getInstructions()
Returns the instructions for this code segment |
DomainModel |
getSource()
Returns the source of the code line of which this is a segment |
java.lang.String |
getStudentCode()
Returns the student code for this segment |
java.lang.String |
getTemplate()
Returns the template for this code segment |
boolean |
isCorrect()
Returns whether this answer is correct or not |
static void |
main(java.lang.String[] args)
|
void |
print()
Prints all the fields of the class |
void |
setCorrect()
Sets that this answer is correct |
void |
setIncorrect()
Sets this answer as incorrect |
java.lang.String |
toString()
Returns only that which is entered into the log |
Methods inherited from class org.problets.domain.line.AbstractLine |
---|
clone, getLineNumber, setLineNumber |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CodeSegmentAttempt(int inLineNumber, java.lang.String inInstructions, java.lang.String inTemplate, java.lang.String inActualCode, java.lang.String inStudentCode, boolean inCorrect, DomainModel inSource)
Method Detail |
---|
public boolean equals(CodeSegmentAttempt newAttempt)
public java.lang.String getInstructions()
public java.lang.String getTemplate()
public java.lang.String getStudentCode()
public java.lang.String getActualCode()
public java.util.Vector getExplanation()
public boolean isCorrect()
public DomainModel getSource()
public void setCorrect()
public void setIncorrect()
public void addToExplanation(java.lang.String entry)
public java.lang.String toString()
toString
in class AbstractLine
public void print()
print
in class AbstractLine
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |