java.lang.Object
omix.mathxp.MathExpression
omix.mathxp.AbstractMathConstant
omix.mathxp.MathConstant
- All Implemented Interfaces:
Cloneable
public class MathConstant extends AbstractMathConstant
- Author:
- Dr. Peter Droste
-
Constructor Summary
Constructors Constructor Description MathConstant(Number value)
MathConstant(Number value, int startToken, int endToken)
MathConstant(MathConstant constant)
MathConstant(UnitInterface unit, Number value)
MathConstant(UnitInterface unit, Number value, int startToken, int endToken)
-
Method Summary
Modifier and Type Method Description MathConstant
clone()
Number
evaluate(Map<?,? extends Number> variables)
Number
getConstantValue()
UnitInterface
getUnit()
Number
getValue()
boolean
isConstant()
boolean
isValid(List<?> references)
void
setUnit(UnitInterface unit)
void
setValue(Number value)
String
toNormalizedString()
String
toString()
Methods inherited from class omix.mathxp.MathExpression
checkForDimensionlessUnit, checkForEqualsUnits, equals, getEndToken, getStartToken
-
Constructor Details
-
Method Details
-
clone
- Specified by:
clone
in classAbstractMathConstant
-
toString
- Specified by:
toString
in classMathExpression
-
toNormalizedString
- Overrides:
toNormalizedString
in classAbstractMathConstant
-
getValue
-
setValue
-
isConstant
public boolean isConstant()- Specified by:
isConstant
in classMathExpression
-
getConstantValue
- Specified by:
getConstantValue
in classMathExpression
-
isValid
- Specified by:
isValid
in classMathExpression
-
evaluate
- Specified by:
evaluate
in classMathExpression
-
getUnit
- Specified by:
getUnit
in classMathExpression
-
setUnit
-