org.problets.domain.model.output
Class StudentLineOutput

java.lang.Object
  extended by org.problets.domain.line.AbstractLine
      extended by org.problets.domain.model.output.LineOutput
          extended by 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

Field Summary
 
Fields inherited from class org.problets.domain.model.output.LineOutput
NO_OUTPUT, NO_OUTPUT_STRING
 
Fields inherited from class org.problets.domain.line.AbstractLine
UNASSIGNED_LINE
 
Constructor Summary
StudentLineOutput()
           
StudentLineOutput(java.lang.String inOutput, int inLineNumber)
           
 
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 org.problets.domain.model.output.LineOutput
equals, equalsIgnoreWhiteSpace, getOutput, isEmpty, print, setOutput, toString
 
Methods inherited from class org.problets.domain.line.AbstractLine
getLineNumber, setLineNumber
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StudentLineOutput

public StudentLineOutput()

StudentLineOutput

public StudentLineOutput(java.lang.String inOutput,
                         int inLineNumber)
Method Detail

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)