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