create changelog entry
[debian/openrocket] / core / src / de / congrace / exp4j / Calculable.java
1 package de.congrace.exp4j;
2
3 /**
4  * This is the basic result class of the exp4j {@link ExpressionBuilder}
5  * 
6  * @author ruckus
7  * 
8  */
9 public interface Calculable {
10         /**
11          * calculate the result of the expression
12          * 
13          * @return the result of the calculation
14          */
15         public Variable calculate();
16
17         /**
18          * return the expression in reverse polish postfix notation
19          * 
20          * @return the expression used to construct this {@link Calculable}
21          */
22         public String getExpression();
23
24         /**
25          * set a variable value for the calculation
26          * 
27          * @param value
28          *            the value of the variable
29          */
30         public void setVariable(Variable var);
31 }