X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=core%2Fsrc%2Fde%2Fcongrace%2Fexp4j%2FCalculable.java;fp=core%2Fsrc%2Fde%2Fcongrace%2Fexp4j%2FCalculable.java;h=4009cb5d7a347abc6bea7f8a0a5d39c7612933c7;hb=9349577cdfdff682b2aabd6daa24fdc3a7449b58;hp=0000000000000000000000000000000000000000;hpb=30ba0a882f0c061176ba14dbf86d3d6fad096c02;p=debian%2Fopenrocket diff --git a/core/src/de/congrace/exp4j/Calculable.java b/core/src/de/congrace/exp4j/Calculable.java new file mode 100644 index 00000000..4009cb5d --- /dev/null +++ b/core/src/de/congrace/exp4j/Calculable.java @@ -0,0 +1,31 @@ +package de.congrace.exp4j; + +/** + * This is the basic result class of the exp4j {@link ExpressionBuilder} + * + * @author ruckus + * + */ +public interface Calculable { + /** + * calculate the result of the expression + * + * @return the result of the calculation + */ + public Variable calculate(); + + /** + * return the expression in reverse polish postfix notation + * + * @return the expression used to construct this {@link Calculable} + */ + public String getExpression(); + + /** + * set a variable value for the calculation + * + * @param value + * the value of the variable + */ + public void setVariable(Variable var); +}