Class TestComplexUnaryOperation

  • All Implemented Interfaces:
    ComplexUnaryOperation

    public class TestComplexUnaryOperation
    extends java.lang.Object
    implements ComplexUnaryOperation
    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)
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Complex operate​(Complex 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

      • TestComplexUnaryOperation

        public TestComplexUnaryOperation()
    • Method Detail

      • operate

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