public class NumericalEngine
extends java.lang.Object
Constructor and Description |
---|
NumericalEngine()
Create a new instance of NumericalEngine.
|
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(double numericalValue,
double compareWith,
java.lang.String comparison)
Return true if the string token evaluates true with the specified equation.
|
boolean |
evaluate(java.lang.String numericalToken,
java.lang.String comparison,
double compareWith)
Return true if the string token evaluates true with the specified equation.
|
public NumericalEngine()
public boolean evaluate(java.lang.String numericalToken, java.lang.String comparison, double compareWith) throws java.lang.Exception
numericalToken
- a (potentially) numerical token to process.comparison
- the comparison to make.compareWith
- the numerical term to compare with.java.lang.Exception
- any error.public boolean evaluate(double numericalValue, double compareWith, java.lang.String comparison) throws java.lang.Exception
numericalValue
- the numerical value to process.compareWith
- the numerical term to compare with.comparison
- the comparison to make.java.lang.Exception
- any error.