Package ptolemy.math.test
Class TestFloatUnaryOperation
- java.lang.Object
-
- ptolemy.math.test.TestFloatUnaryOperation
-
- All Implemented Interfaces:
FloatUnaryOperation
public class TestFloatUnaryOperation extends java.lang.Object implements FloatUnaryOperation
A operation taking one argument of type float, and producing a value of type float. This interface attempts to mimic a first-class function of a single variable.- Since:
- Ptolemy II 2.0
- Version:
- $Id$
- Author:
- Jeff Tsay
- Pt.AcceptedRating:
- Red (ctsay)
- Pt.ProposedRating:
- Red (ctsay)
-
-
Constructor Summary
Constructors Constructor Description TestFloatUnaryOperation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
operate(float operand)
Operate on the operand, returning a value of the same type.
-
-
-
Method Detail
-
operate
public float operate(float operand)
Operate on the operand, returning a value of the same type.- Specified by:
operate
in interfaceFloatUnaryOperation
- Parameters:
operand
- The operand.- Returns:
- The results of the operation.
-
-