|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.problets.domain.line.AbstractLine
org.problets.domain.line.AbstractExplanationLine
org.problets.domain.model.expression.step.AbstractExpressionStep
org.problets.domain.model.expression.step.ExpressionStep
public class ExpressionStep
To hold one step in the solution to an expression
Field Summary | |
---|---|
static java.lang.String |
NO_VALUE
|
static java.lang.String |
SPACE
|
Fields inherited from class org.problets.domain.line.AbstractLine |
---|
UNASSIGNED_LINE |
Constructor Summary | |
---|---|
ExpressionStep(java.lang.String inMessage,
int inOrder)
Constructor for ExpressionStep - used for post-expression message |
|
ExpressionStep(java.lang.String inExpression,
int inOrder,
java.lang.String inResult)
Constructor for ExpressionStep - used for subexpressions |
Method Summary | |
---|---|
void |
appendPostExplanation(java.lang.String inExplanation)
|
void |
appendPreExplanation(java.lang.String inExplanation)
Adds inExplanation at the end of the explanation that appears before the expression |
boolean |
equals(ExpressionStep parameter)
Method returns true of the expression, its result and its order are the same |
boolean |
equalsModuloOrder(ExpressionStep parameter)
Method returns true of this step is the same as the parameter except for the order |
java.lang.String |
getPostExplanation()
|
java.lang.String |
getStep()
Returns the string "expression = result" |
void |
prependPostExplanation(java.lang.String inExplanation)
|
void |
print()
Prints all the fields of the class |
java.lang.String |
toString()
Returns only that which is entered into the log |
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 |
Field Detail |
---|
public static final java.lang.String SPACE
public static final java.lang.String NO_VALUE
Constructor Detail |
---|
public ExpressionStep(java.lang.String inExpression, int inOrder, java.lang.String inResult)
public ExpressionStep(java.lang.String inMessage, int inOrder)
Method Detail |
---|
public java.lang.String getStep()
public boolean equals(ExpressionStep parameter)
public boolean equalsModuloOrder(ExpressionStep parameter)
public java.lang.String getPostExplanation()
public void appendPreExplanation(java.lang.String inExplanation)
inExplanation
- - the explanation string to be appendedpublic void appendPostExplanation(java.lang.String inExplanation)
public void prependPostExplanation(java.lang.String inExplanation)
public void print()
AbstractExplanationLine
print
in class AbstractExpressionStep
public java.lang.String toString()
AbstractExplanationLine
toString
in class AbstractExpressionStep
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |