|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Calculable
This is the basic result class of the exp4j ExpressionBuilder
Method Summary | |
---|---|
double |
calculate()
calculate the result of the expression |
double |
calculate(double... variableValues)
calculate the result of the expression |
String |
getExpression()
return the expression in reverse polish postfix notation |
void |
setVariable(String name,
double value)
set a variable value for the calculation |
Method Detail |
---|
double calculate()
double calculate(double... variableValues)
variableValues
- the values of the variable. The values must be in the same order as the declaration of variables in
the ExpressionBuilder
used to construct this Calculable
instance
String getExpression()
Calculable
void setVariable(String name, double value)
name
- the variable namevalue
- the value of the variable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |