/*
 * @(#)FunctionComplex.java    2.4.0   8 July 2005
 *
 * Copyright 2005
 * College of Computer and Information Science
 * Northeastern University
 * Boston, MA  02115
 *
 * The Java Power Tools software may be used for educational
 * purposes as long as this copyright notice is retained intact
 * at the top of all source files.
 *
 * To discuss possible commercial use of this software, 
 * contact Richard Rasala at Northeastern University, 
 * College of Computer and Information Science,
 * 617-373-2462 or rasala@ccs.neu.edu.
 *
 * The Java Power Tools software has been designed and built
 * in collaboration with Viera Proulx and Jeff Raab.
 *
 * Should this software be modified, the words "Modified from 
 * Original" must be included as a comment below this notice.
 *
 * All publication rights are retained.  This software or its 
 * documentation may not be published in any media either
 * in whole or in part without explicit permission.
 *
 * This software was created with support from Northeastern 
 * University and from NSF grant DUE-9950829.
 */

package edu.neu.ccs;

import java.awt.geom.*;

/**
 * <p>Class <code>FunctionComplex</code> is a collection of interfaces
 * that classify functions that accept and return values of
 * type <code>XComplex</code> according to the number and kind of
 * direct function arguments.</p>
 *
 * <p>For example, a class that implements the interface
 * <code>FunctionComplex.OneArg</code> is required to have a method
 * with the following signature.</p>
 *
 * <p><code>public XComplex evaluate(XComplex x)</code>.</p>
 *
 * <p>Tools and instances of <code>FunctionComplex.OneArg</code>
 * may be found in the classes <code>FC</code>
 * and <code>XPolynomialComplex</code>.</p>
 *
 * <p>Class <code>FunctionComplex</code> cannot be instantiated.</p>
 *
 * @author  Richard Rasala
 * @version 2.4.0
 * @since   2.4.0
 */
public class FunctionComplex {
    
    private FunctionComplex() {}
    
    public interface NoArg {
        public XComplex evaluate();
    }
    
    public interface OneArg {
        public XComplex evaluate(XComplex x);
    }
    
    public interface TwoArg {
        public XComplex evaluate(XComplex x, XComplex y);
    }
    
    public interface ThreeArg {
        public XComplex evaluate(XComplex x, XComplex y, XComplex z);
    }
    
    public interface FourArg {
        public XComplex evaluate(XComplex x, XComplex y, XComplex z, XComplex w);
    }
    
    public interface ArrayArg {
        public XComplex evaluate(XComplex[] args);
    }
    
    public interface TwoArrayArg {
        public XComplex evaluate(XComplex[] args1, XComplex[] args2);
    }
    
    public interface ArrayOfArrayArg {
        public XComplex evaluate(XComplex[][] args);
    }
    
}
