org.problets.domain.model.expression.step
Class AssignmentStep

java.lang.Object
  extended by 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

Constructor Summary
AssignmentStep(AbstractVarModel inVariable)
          If only the variable is passed, assume the side effect is not correct
AssignmentStep(AbstractVarModel inVariable, boolean inCorrect)
           
 
Method Summary
 boolean equals(AssignmentStep rhs)
          Returns whether this AssignmentStep equals rhs
 java.lang.String getName()
           
 Value getValue()
           
 boolean isCorrect()
           
static void main(java.lang.String[] args)
           
 void setCorrect()
           
 void setIncorrect()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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)