/*
 * @(#)Parameter.java    2.4.0   7 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>Parameter</code> is a collection of interfaces
 * that classify functions that accept and return values of
 * type <code>double</code> according to the number and kind of
 * auxiliary function parameters.</p>
 *
 * <p>For example, a class that implements the interface
 * <code>Parameter.ArrayParam</code> is required to have a method
 * with the following signature.</p>
 *
 * <p><code>public void setParam(double[] params)</code></p>
 *
 * <p>Class <code>Parameter</code> cannot be instantiated.</p>
 *
 * @author  Richard Rasala
 * @version 2.4.0
 * @since   2.3.2
 */
public class Parameter {
    
    private Parameter() {}
    
    public interface OneParam {
        public void setParam(double a);
    }
    
    public interface TwoParam {
        public void setParam(double a, double b);
    }
    
    public interface ThreeParam {
        public void setParam(double a, double b, double c);
    }
    
    public interface FourParam {
        public void setParam(double a, double b, double c, double d);
    }
    
    public interface ArrayParam {
        public void setParam(double[] params);
    }
    
    public interface TwoArrayParam {
        public void setParam(double[] params1, double[] params2);
    }
    
    public interface ArrayOfArrayParam {
        public void setParam(double[][] params);
    }
    
    public interface Point2DParam {
        public void setParam(Point2D p);
    }
    
    public interface Point2DArrayParam {
        public void setParam(Point2D[] params);
    }
}
