java.lang.Object
omix.mathxp.MathExpression
omix.mathxp.AbstractMathReference
omix.mathxp.MathPointer
- All Implemented Interfaces:
Cloneable
public class MathPointer extends AbstractMathReference
- Author:
- Dr. Peter Droste
-
Constructor Summary
Constructors Constructor Description MathPointer(MathReference expression, String pointer)
MathPointer(MathReference expression, String pointer, int startToken, int endToken)
MathPointer(UnitInterface unit, MathReference expression, String pointer)
MathPointer(UnitInterface unit, MathReference expression, String pointer, int startToken, int endToken)
-
Method Summary
Modifier and Type Method Description MathPointer
clone()
Number
evaluate(Map<?,? extends Number> variables)
Number
getConstantValue()
String
getPointer()
MathReference
getReference()
UnitInterface
getUnit()
boolean
isConstant()
boolean
isValid(List<?> references)
void
setUnit(UnitInterface unit)
String
toNormalizedString()
String
toString()
Methods inherited from class omix.mathxp.MathExpression
checkForDimensionlessUnit, checkForEqualsUnits, equals, getEndToken, getStartToken
-
Constructor Details
-
MathPointer
-
MathPointer
-
MathPointer
-
MathPointer
public MathPointer(UnitInterface unit, MathReference expression, String pointer, int startToken, int endToken)
-
-
Method Details
-
clone
- Specified by:
clone
in classAbstractMathReference
-
toString
- Specified by:
toString
in classMathExpression
-
toNormalizedString
- Specified by:
toNormalizedString
in classMathExpression
-
getReference
-
getPointer
-
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
- Throws:
NotExecutableException
-
getUnit
- Overrides:
getUnit
in classAbstractMathReference
-
setUnit
- Overrides:
setUnit
in classAbstractMathReference
-