uk.ac.starlink.diva.interp
Interface InterpolatorFactory

All Known Implementing Classes:
BasicInterpolatorFactory

public interface InterpolatorFactory

Interface for a class that defines how to create Interpolator instances for an application. Usually there will be just one class that implements this interface.

Version:
$Id$
Author:
Peter W. Draper

Field Summary
static int AKIMA
          Akima splines
static int CUBIC
          Cubic splines
static String[] defaultShortNames
          Display names for Curves defined in the interface.
static int HERMITE
          Hermite splines
static int LINEAR
          Straight lines between points (almost same as polyline except X coordinates are always monotonic)
static int POLYNOMIAL
          Single polynomial though all points.
 
Method Summary
 int getInterpolatorCount()
          Get the number of interpolators supported.
 int getInterpolatorType(Interpolator interpolator)
          Return the numeric type of a given Interpolator.
 String getShortName(int interpolator)
          Get the short name of an interpolator type.
 int getTypeFromName(String name)
          Get the interpolator type, given a short name.
 Interpolator makeInterpolator(int interpolator)
          Create an Interpolator of the given type.
 

Field Detail

HERMITE

static final int HERMITE
Hermite splines

See Also:
Constant Field Values

AKIMA

static final int AKIMA
Akima splines

See Also:
Constant Field Values

CUBIC

static final int CUBIC
Cubic splines

See Also:
Constant Field Values

POLYNOMIAL

static final int POLYNOMIAL
Single polynomial though all points.

See Also:
Constant Field Values

LINEAR

static final int LINEAR
Straight lines between points (almost same as polyline except X coordinates are always monotonic)

See Also:
Constant Field Values

defaultShortNames

static final String[] defaultShortNames
Display names for Curves defined in the interface. Implementors should base any extensions on this list

Method Detail

getInterpolatorCount

int getInterpolatorCount()
Get the number of interpolators supported.


makeInterpolator

Interpolator makeInterpolator(int interpolator)
Create an Interpolator of the given type.


getShortName

String getShortName(int interpolator)
Get the short name of an interpolator type.


getTypeFromName

int getTypeFromName(String name)
Get the interpolator type, given a short name. Returns -1 if the name isn't known.


getInterpolatorType

int getInterpolatorType(Interpolator interpolator)
Return the numeric type of a given Interpolator. Returns -1 if the type is unknown.



Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.