ptolemy.math
Interface IntegerBinaryOperation


public interface IntegerBinaryOperation

A operation taking two operands of type int, and producing a value of type int. This interface attempts to mimic a first-class function of two variables.

Since:
Ptolemy II 1.0
Version:
$Id: IntegerBinaryOperation.java 43782 2006-09-21 15:10:05Z cxh $
Author:
Jeff Tsay
Accepted Rating:
Red (ctsay)
Proposed Rating:
Red (ctsay)

Method Summary
 int operate(int leftOperand, int rightOperand)
          Operate on the operands, returning a value of the same type.
 

Method Detail

operate

int operate(int leftOperand,
            int rightOperand)
Operate on the operands, returning a value of the same type. Note that the operation need not be commutative.

Parameters:
leftOperand - The left operand.
rightOperand - The right operand.
Returns:
The results of the operation