Class TestDoubleUnaryOperation

  • All Implemented Interfaces:
    DoubleUnaryOperation

    public class TestDoubleUnaryOperation
    extends java.lang.Object
    implements DoubleUnaryOperation
    A operation taking one argument of type double, and producing a value of type double. 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
      double operate​(double 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

      • TestDoubleUnaryOperation

        public TestDoubleUnaryOperation()
    • Method Detail

      • operate

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