Class 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)
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TestFloatUnaryOperation

        public TestFloatUnaryOperation()
    • Method Detail

      • operate

        public float operate​(float operand)
        Operate on the operand, returning a value of the same type.
        Specified by:
        operate in interface FloatUnaryOperation
        Parameters:
        operand - The operand.
        Returns:
        The results of the operation.