java.lang.Object
omix.mathxp.MathExpression
omix.mathxp.MathFunction
- All Implemented Interfaces:
Cloneable
public class MathFunction extends MathExpression
- Author:
- Dr. Peter Droste
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
MathFunction.FunctionProcessorInterface
-
Constructor Summary
Constructors Constructor Description MathFunction(String name, List<MathExpression> parameters)
MathFunction(String name, List<MathExpression> parameters, int startToken, int endToken)
MathFunction(MathFunction function)
-
Method Summary
Modifier and Type Method Description void
checkUnits(UnitCheckMessageCollectorInterface messageCollector)
MathFunction
clone()
Number
evaluate(Map<?,? extends Number> variables)
boolean
exists()
Number
getConstantValue()
MathFunction.FunctionProcessorInterface
getFunctionProcessor()
String
getName()
List<MathExpression>
getParameters()
UnitInterface
getUnit()
boolean
isConstant()
boolean
isValid(List<?> references)
void
setFunctionProcessor(MathFunction.FunctionProcessorInterface functionProcessor)
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 classMathExpression
-
getConstantValue
- Specified by:
getConstantValue
in classMathExpression
-
isConstant
public boolean isConstant()- Specified by:
isConstant
in classMathExpression
-
isValid
- Specified by:
isValid
in classMathExpression
-
exists
public boolean exists() -
toString
- Specified by:
toString
in classMathExpression
-
toNormalizedString
- Specified by:
toNormalizedString
in classMathExpression
-
getParameters
-
getName
-
evaluate
public Number evaluate(Map<?,? extends Number> variables) throws NotExecutableException, VariableNotFoundException- Specified by:
evaluate
in classMathExpression
- Throws:
NotExecutableException
VariableNotFoundException
-
getUnit
- Specified by:
getUnit
in classMathExpression
-
checkUnits
- Specified by:
checkUnits
in classMathExpression
-
getFunctionProcessor
-
setFunctionProcessor
-