public abstract class CalcExpression
extends java.lang.Object
implements jade.util.leap.Serializable
CalcConstant
, CalcParameter
or CalcFormula
.
On the other hand, this class can just be extended in order to
generate a calculating class, where calculations are don within the
Java class itself.Constructor and Description |
---|
CalcExpression() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getUnit()
Returns the unit.
|
abstract double |
getValue()
Returns or calculates the value of the CalcExpression.
|
void |
setUnit(java.lang.String unit)
Sets the unit.
|
java.lang.String |
toString() |
public abstract double getValue() throws CalcExeption
CalcExeption
- the CalcExeptionpublic void setUnit(java.lang.String unit)
unit
- the new unitpublic java.lang.String getUnit()
public java.lang.String toString()
toString
in class java.lang.Object