|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.problets.student.AnswerList
public class AnswerList
To hold the current answer
Constructor Summary | |
---|---|
AnswerList()
|
Method Summary | |
---|---|
void |
addtoAnswer(CodeSegmentAttempt codeSegmentAttempt)
|
void |
addtoAnswer(ErrorLine inErrorLine)
This will be the method through which CodeView will communicate with StudentModel to register the user's answer to the current problem. |
void |
addtoAnswer(ExpressionViewStep step)
|
void |
addtoAnswer(LineOutput inOutput)
This method is used to record "No Output" specified by the user for the current code. |
void |
addtoAnswer(LineOutput inOutput,
java.util.Vector actualAnswer)
This method is used to record the output specified by the user for the current code. |
void |
addtoAnswer(java.util.Vector dataTrace)
|
java.util.Vector |
getAnswers()
|
java.util.Vector |
getAnswersForLine(int lineNumber)
Method to return a vector of all the errors checked for this line |
java.lang.Object |
getLastAnswer()
|
int |
getNumberEntries()
|
boolean |
isProblemAttempted()
|
static void |
main(java.lang.String[] args)
|
void |
undoAllAnswers()
|
void |
undoLastAnswer()
|
void |
updateAnswersForLine(int lineNumber,
java.util.Vector newAnswers,
java.util.Vector actualAnswer)
Method to update the output for a line |
void |
verifyOutputCorrectness(java.util.Vector actualAnswer)
If the user manipulates the output of a program on the OutputStreamView panel this method is used to verify the correctness of the changes for Error-Flagging purposes |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AnswerList()
Method Detail |
---|
public java.util.Vector getAnswersForLine(int lineNumber)
line
- number, an integer
public java.lang.Object getLastAnswer()
public java.util.Vector getAnswers()
public int getNumberEntries()
public boolean isProblemAttempted()
public void addtoAnswer(ErrorLine inErrorLine)
public void addtoAnswer(LineOutput inOutput)
public void addtoAnswer(LineOutput inOutput, java.util.Vector actualAnswer)
public void addtoAnswer(ExpressionViewStep step)
public void addtoAnswer(java.util.Vector dataTrace)
public void addtoAnswer(CodeSegmentAttempt codeSegmentAttempt)
public void undoLastAnswer()
public void undoAllAnswers()
public void updateAnswersForLine(int lineNumber, java.util.Vector newAnswers, java.util.Vector actualAnswer)
public void verifyOutputCorrectness(java.util.Vector actualAnswer)
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |