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, toString
public CalcConstant()
public CalcConstant(double value)
value
- the actual constant valuepublic double getValue()
CalcExpression
getValue
in class CalcExpression
public void setValue(double newValue)
newValue
- the new value