| org.mandarax.lib.AbstractFunction org.mandarax.lib.math.BinaryIntArithmeticFunction
BinaryIntArithmeticFunction | abstract public class BinaryIntArithmeticFunction extends AbstractFunction (Code) | | Abstract superclass for int arithmetic functions with two arguments.
author: Jens Dietrich version: 3.4 <7 March 05> since: 1.4 (in 1.3 in the renamed package org.mandarax.math) |
Method Summary | |
abstract protected int | compute(int d1, int d2) Compute the result using the function. | public Class | getReturnType() Get the return type of the function. | public Class[] | getStructure() Get the structure of the function. | public Object | perform(Term[] parameter, Session session) Perform the function using an array of terms as parameters. |
compute | abstract protected int compute(int d1, int d2)(Code) | | Compute the result using the function.
the result Parameters: d1 - value 1 Parameters: d2 - value 2 |
getReturnType | public Class getReturnType()(Code) | | Get the return type of the function.
the return type of the function |
getStructure | public Class[] getStructure()(Code) | | Get the structure of the function.
the structure of the function |
|
|