|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.rsl.konrad.numerics.mathexpressions.AbstractMathExpression
edu.stanford.rsl.konrad.numerics.mathexpressions.FloatExpression
public class FloatExpression
Constructor Summary | |
---|---|
FloatExpression(java.lang.String currToken)
|
Method Summary | |
---|---|
double |
evaluate(java.util.Map<java.lang.String,java.lang.Double> variablesMap)
Determines the value of string expression represented by this class by replacing variables with values provided in map; If expression has no variable evaluate() should be called; |
java.lang.String |
toString()
Converts a mathematical expression an equivalent string literal |
Methods inherited from class edu.stanford.rsl.konrad.numerics.mathexpressions.AbstractMathExpression |
---|
evaluate |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FloatExpression(java.lang.String currToken)
Method Detail |
---|
public double evaluate(java.util.Map<java.lang.String,java.lang.Double> variablesMap)
AbstractMathExpression
evaluate
in class AbstractMathExpression
public java.lang.String toString()
AbstractMathExpression
toString
in class AbstractMathExpression
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |