Merge commit '42b2e5ca519766e37ce6941ba4faecc9691cc403' into upstream
[debian/openrocket] / core / src / de / congrace / exp4j / Calculable.java
diff --git a/core/src/de/congrace/exp4j/Calculable.java b/core/src/de/congrace/exp4j/Calculable.java
new file mode 100644 (file)
index 0000000..4009cb5
--- /dev/null
@@ -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);
+}