java.lang.Object
omix.mathxp.MathExpression
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
AbstractMathConstant
,AbstractMathReference
,MathFunction
,MathLambdaExpression
,MathOperation
public abstract class MathExpression extends Object implements Cloneable
- Author:
- Dr. Peter Droste
-
Constructor Summary
Constructors Constructor Description MathExpression()
MathExpression(int startToken, int endToken)
MathExpression(MathExpression tree)
-
Method Summary
Modifier and Type Method Description static void
checkForDimensionlessUnit(MathExpression expression0, UnitCheckMessageCollectorInterface messageCollector)
static void
checkForEqualsUnits(MathExpression expression0, MathExpression expression1, UnitCheckMessageCollectorInterface messageCollector)
abstract void
checkUnits(UnitCheckMessageCollectorInterface messageCollector)
abstract MathExpression
clone()
static boolean
equals(MathExpression expression1, MathExpression expression2)
abstract Number
evaluate(Map<?,? extends Number> variables)
abstract Number
getConstantValue()
int
getEndToken()
int
getStartToken()
abstract UnitInterface
getUnit()
abstract boolean
isConstant()
abstract boolean
isValid(List<?> references)
abstract String
toNormalizedString()
abstract String
toString()
-
Constructor Details
-
MathExpression
public MathExpression(int startToken, int endToken) -
MathExpression
public MathExpression() -
MathExpression
-
-
Method Details
-
clone
-
toString
-
toNormalizedString
-
isValid
-
getStartToken
public int getStartToken() -
getEndToken
public int getEndToken() -
isConstant
public abstract boolean isConstant() -
getConstantValue
-
equals
-
evaluate
public abstract Number evaluate(Map<?,? extends Number> variables) throws VariableNotFoundException, NotExecutableException -
getUnit
-
checkUnits
-
checkForDimensionlessUnit
public static void checkForDimensionlessUnit(MathExpression expression0, UnitCheckMessageCollectorInterface messageCollector) -
checkForEqualsUnits
public static void checkForEqualsUnits(MathExpression expression0, MathExpression expression1, UnitCheckMessageCollectorInterface messageCollector)
-