org.problets.domain.model.expression.step
Class AssignmentStep
java.lang.Object
org.problets.domain.model.expression.step.AssignmentStep
public class AssignmentStep
- extends java.lang.Object
Holds the side-effect of one assignment operation,
as specified by the student
- Author:
- Amruth Kumar
Date: 11/3/2007
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AssignmentStep
public AssignmentStep(AbstractVarModel inVariable)
- If only the variable is passed, assume the side effect is not correct
AssignmentStep
public AssignmentStep(AbstractVarModel inVariable,
boolean inCorrect)
getName
public java.lang.String getName()
getValue
public Value getValue()
isCorrect
public boolean isCorrect()
equals
public boolean equals(AssignmentStep rhs)
- Returns whether this AssignmentStep equals rhs
setCorrect
public void setCorrect()
setIncorrect
public void setIncorrect()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
main
public static void main(java.lang.String[] args)