public final class MmuCalculator
extends java.lang.Object
MmuCalculator
implements an expression calculator.Modifier and Type | Method and Description |
---|---|
static java.math.BigInteger |
eval(MmuExpression expression,
IntegerVariable variable,
java.math.BigInteger value)
Evaluates the single-variable expression.
|
static java.math.BigInteger |
eval(MmuExpression expression,
java.util.Map<IntegerVariable,java.math.BigInteger> values)
Evaluates the expression.
|
public static java.math.BigInteger eval(MmuExpression expression, java.util.Map<IntegerVariable,java.math.BigInteger> values)
expression
- the expression to be calculated.values
- the values of the variables.public static java.math.BigInteger eval(MmuExpression expression, IntegerVariable variable, java.math.BigInteger value)
expression
- the expression to be calculated.variable
- the variable.value
- the value of the variable.