Package org.projog.core.math.builtin
Class Multiply
- java.lang.Object
-
- org.projog.core.math.AbstractArithmeticOperator
-
- org.projog.core.math.AbstractBinaryArithmeticOperator
-
- org.projog.core.math.builtin.Multiply
-
- All Implemented Interfaces:
KnowledgeBaseConsumer,ArithmeticOperator,PreprocessableArithmeticOperator
public final class Multiply extends AbstractBinaryArithmeticOperator
*- performs multiplication.
-
-
Constructor Summary
Constructors Constructor Description Multiply()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected doublecalculateDouble(double n1, double n2)Returns the product of the two argumentsprotected longcalculateLong(long n1, long n2)Returns the product of the two arguments-
Methods inherited from class org.projog.core.math.AbstractBinaryArithmeticOperator
calculate
-
Methods inherited from class org.projog.core.math.AbstractArithmeticOperator
calculate, calculate, isPure, preprocess, setKnowledgeBase
-
-
-
-
Method Detail
-
calculateDouble
protected double calculateDouble(double n1, double n2)Returns the product of the two arguments- Specified by:
calculateDoublein classAbstractBinaryArithmeticOperator
-
calculateLong
protected long calculateLong(long n1, long n2)Returns the product of the two arguments- Specified by:
calculateLongin classAbstractBinaryArithmeticOperator
-
-