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
* - performs multiplication.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected doublecalculateDouble(double n1, double n2) Returns the product of the two argumentsprotected longcalculateLong(long n1, long n2) Returns the product of the two argumentsMethods inherited from class AbstractBinaryArithmeticOperator
calculateMethods inherited from class AbstractArithmeticOperator
calculate, calculate, isPure, preprocess, setKnowledgeBase
-
Constructor Details
-
Multiply
public Multiply()
-
-
Method Details
-
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
-