Class AbstractBinaryIntegerArithmeticOperator
java.lang.Object
org.projog.core.math.AbstractArithmeticOperator
org.projog.core.math.AbstractBinaryIntegerArithmeticOperator
- All Implemented Interfaces:
KnowledgeBaseConsumer, ArithmeticOperator, PreprocessableArithmeticOperator
- Direct Known Subclasses:
BitwiseAnd, BitwiseOr, BitwiseXor, IntegerDivide, Modulo, Remainder, ShiftLeft, ShiftRight
A template for
ArithmeticOperators that accept two arguments of type TermType.INTEGER.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Numericprotected abstract longcalculateLong(long n1, long n2) Returns the result of evaluating an arithmetic expression using the two argumentsMethods inherited from class AbstractArithmeticOperator
calculate, calculate, isPure, preprocess, setKnowledgeBase
-
Constructor Details
-
AbstractBinaryIntegerArithmeticOperator
public AbstractBinaryIntegerArithmeticOperator()
-
-
Method Details
-
calculate
- Overrides:
calculatein classAbstractArithmeticOperator
-
calculateLong
protected abstract long calculateLong(long n1, long n2) Returns the result of evaluating an arithmetic expression using the two arguments
-