Package | Description |
---|---|
org.projog.core.math | |
org.projog.core.math.builtin |
Provides arithmetic operators.
|
org.projog.core.term |
Contains the building blocks used to construct Prolog programs and queries.
|
Modifier and Type | Method and Description |
---|---|
Numeric |
AbstractUnaryArithmeticOperator.calculate(Numeric n) |
protected Numeric |
AbstractArithmeticOperator.calculate(Numeric n) |
Numeric |
AbstractBinaryIntegerArithmeticOperator.calculate(Numeric n1,
Numeric n2) |
Numeric |
AbstractBinaryArithmeticOperator.calculate(Numeric n1,
Numeric n2) |
protected Numeric |
AbstractArithmeticOperator.calculate(Numeric n1,
Numeric n2) |
Numeric |
ArithmeticOperator.calculate(Term[] args)
Returns the result of the calculation using the specified arguments.
|
Numeric |
AbstractArithmeticOperator.calculate(Term[] args) |
Numeric |
ArithmeticOperators.getNumeric(Term t)
Returns the result of evaluating the specified arithmetic expression.
|
Modifier and Type | Method and Description |
---|---|
Numeric |
AbstractUnaryArithmeticOperator.calculate(Numeric n) |
protected Numeric |
AbstractArithmeticOperator.calculate(Numeric n) |
Numeric |
AbstractBinaryIntegerArithmeticOperator.calculate(Numeric n1,
Numeric n2) |
Numeric |
AbstractBinaryArithmeticOperator.calculate(Numeric n1,
Numeric n2) |
protected Numeric |
AbstractArithmeticOperator.calculate(Numeric n1,
Numeric n2) |
int |
NumericTermComparator.compare(Numeric n1,
Numeric n2)
Compares two arguments, representing
Numeric terms, for order. |
Modifier and Type | Method and Description |
---|---|
Numeric |
Round.calculate(Numeric n) |
Numeric |
Random.calculate(Numeric n) |
protected Numeric |
Min.calculate(Numeric n1,
Numeric n2) |
protected Numeric |
Max.calculate(Numeric n1,
Numeric n2) |
Numeric |
Divide.calculate(Numeric n1,
Numeric n2) |
Modifier and Type | Method and Description |
---|---|
Numeric |
Round.calculate(Numeric n) |
Numeric |
Random.calculate(Numeric n) |
protected Numeric |
Min.calculate(Numeric n1,
Numeric n2) |
protected Numeric |
Max.calculate(Numeric n1,
Numeric n2) |
Numeric |
Divide.calculate(Numeric n1,
Numeric n2) |
Modifier and Type | Class and Description |
---|---|
class |
DecimalFraction
Represents a value of the primitive type
double as a Term . |
class |
IntegerNumber
Represents a value of the primitive type
long as a Term . |
Modifier and Type | Method and Description |
---|---|
static Numeric |
TermUtils.castToNumeric(Term t)
|
Copyright © 2024. All rights reserved.