Package ptolemy.math.test
Class TestComplexBinaryOperation
- java.lang.Object
 - 
- ptolemy.math.test.TestComplexBinaryOperation
 
 
- 
- All Implemented Interfaces:
 ComplexBinaryOperation
public class TestComplexBinaryOperation extends java.lang.Object implements ComplexBinaryOperation
A operation taking one argument of type Complex, and producing a value of type Complex. This interface attempts to mimic a first-class function of a single variable.- Since:
 - Ptolemy II 2.0
 - Version:
 - $Id$
 - Author:
 - Christopher Hylands
 - Pt.AcceptedRating:
 - Red (ctsay)
 - Pt.ProposedRating:
 - Red (ctsay)
 
 
- 
- 
Constructor Summary
Constructors Constructor Description TestComplexBinaryOperation() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Complexoperate(Complex leftOperand, Complex rightOperand)Operate on the operands, returning a value of the same type. 
 - 
 
- 
- 
Method Detail
- 
operate
public Complex operate(Complex leftOperand, Complex rightOperand)
Operate on the operands, returning a value of the same type. Note that the operation need not be commutative;- Specified by:
 operatein interfaceComplexBinaryOperation- Parameters:
 leftOperand- The left operand.rightOperand- The right operand.- Returns:
 - The results of the operation
 
 
 - 
 
 -