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

java.lang.Object
  extended by org.problets.domain.line.AbstractLine
      extended by org.problets.domain.line.AbstractExplanationLine
          extended by org.problets.domain.model.expression.step.AbstractExpressionStep
              extended by org.problets.domain.model.expression.step.ExpressionStep
                  extended by org.problets.domain.model.expression.step.IncorrectExpressionStep
All Implemented Interfaces:
java.lang.Cloneable

public class IncorrectExpressionStep
extends ExpressionStep

To hold one incorrect step in the solution to an expression

Author:
Amruth Kumar

Field Summary
 
Fields inherited from class org.problets.domain.model.expression.step.ExpressionStep
NO_VALUE, SPACE
 
Fields inherited from class org.problets.domain.line.AbstractLine
UNASSIGNED_LINE
 
Constructor Summary
IncorrectExpressionStep(java.lang.String inExpression, int inOrder)
          Constructor for IncorrectExpressionStep - used for messages
IncorrectExpressionStep(java.lang.String inExpression, int inOrder, java.lang.String inResult)
          Constructor for IncorrectExpressionStep - used for subexpressions
 
Method Summary
 void print()
          Prints all the fields of the class
 
Methods inherited from class org.problets.domain.model.expression.step.ExpressionStep
appendPostExplanation, appendPreExplanation, equals, equalsModuloOrder, getPostExplanation, getStep, prependPostExplanation, toString
 
Methods inherited from class org.problets.domain.model.expression.step.AbstractExpressionStep
getOrder, getResult, replaceTagDelimiters, setOrder, setResult
 
Methods inherited from class org.problets.domain.line.AbstractExplanationLine
getEvent, getExplainer, getFeedbackAmount, setFeedbackAmount
 
Methods inherited from class org.problets.domain.line.AbstractLine
clone, getLineNumber, setLineNumber
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IncorrectExpressionStep

public IncorrectExpressionStep(java.lang.String inExpression,
                               int inOrder,
                               java.lang.String inResult)
Constructor for IncorrectExpressionStep - used for subexpressions


IncorrectExpressionStep

public IncorrectExpressionStep(java.lang.String inExpression,
                               int inOrder)
Constructor for IncorrectExpressionStep - used for messages

Method Detail

print

public void print()
Description copied from class: AbstractExplanationLine
Prints all the fields of the class

Overrides:
print in class ExpressionStep