public class CalcConstant extends CalcExpression
| Constructor and Description |
|---|
CalcConstant()
Instantiates a new empty CalcConstant.
|
CalcConstant(double value)
Instantiates a new CalcConstant.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getValue()
Returns or calculates the value of the CalcExpression.
|
void |
setValue(double newValue)
Sets the value.
|
getUnit, setUnit, toStringpublic CalcConstant()
public CalcConstant(double value)
value - the actual constant valuepublic double getValue()
CalcExpressiongetValue in class CalcExpressionpublic void setValue(double newValue)
newValue - the new value