org.problets.domain.model.output
Class StudentLineOutput
java.lang.Object
org.problets.domain.line.AbstractLine
org.problets.domain.model.output.LineOutput
org.problets.domain.model.output.StudentLineOutput
- All Implemented Interfaces:
- java.lang.Cloneable
public class StudentLineOutput
- extends LineOutput
To store the output of one output statement entered by the student
- Author:
- Amruth Kumar
Method Summary |
java.lang.Object |
clone()
|
int |
getStatus()
Returns the status of this answer |
boolean |
isCorrect()
Returns whether this answer is correct or not |
static void |
main(java.lang.String[] args)
|
void |
setCorrect()
Sets that this answer is correct |
void |
setIncorrect()
Sets this answer as incorrect |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
StudentLineOutput
public StudentLineOutput()
StudentLineOutput
public StudentLineOutput(java.lang.String inOutput,
int inLineNumber)
clone
public java.lang.Object clone()
- Overrides:
clone
in class LineOutput
isCorrect
public boolean isCorrect()
- Returns whether this answer is correct or not
getStatus
public int getStatus()
- Returns the status of this answer
setCorrect
public void setCorrect()
- Sets that this answer is correct
setIncorrect
public void setIncorrect()
- Sets this answer as incorrect
main
public static void main(java.lang.String[] args)