optics
Class CauchyIndex

java.lang.Object
  extended by optics.Optics
      extended by optics.WaveLengthFunction
          extended by optics.RefractiveIndex
              extended by optics.CauchyIndex

public class CauchyIndex
extends RefractiveIndex

Class to implement three point Cauchy Refractive index interpolation for wavelength in micron with n = A + B/l^2 + C/l^4


Field Summary
 
Fields inherited from class optics.RefractiveIndex
air, currentIndex, currentWaveLength
 
Fields inherited from class optics.WaveLengthFunction
maxPlotLambda, minPlotLambda, plotPoints
 
Fields inherited from class optics.Optics
DEFAULT_WAVELENGTH, errorStream, fmt, MICRONS
 
Constructor Summary
CauchyIndex(CauchyIndex n)
          Constructor with parameters specified by CauchyIndex.
CauchyIndex(double nd, double vd)
          Constructor with two parameters of d-line refractive index and the Abbe number.
CauchyIndex(double a, double b, double c)
          CauchyIndex constructor with three parameters for a wavelength in microns.
CauchyIndex(int glassType)
          Constructor with single int glass type parameter containing d-line refractive index and Abbe number of form nnnVVV where refractive index is 1.nnn and Abbe number VV.V.
 
Method Summary
 CauchyIndex clone()
          Method to return a clone of the current CauchyIndex
 double getIndex(double lambda)
          Method to return refractive index for a specified wavelength in microns.
 void set(double nd, double vd)
          Method to set with two parameters.
 void set(double a, double b, double c)
          Method to set all three parameters
 java.lang.String toString()
          Default String method to get formatted name.
 
Methods inherited from class optics.RefractiveIndex
fromString, fromTokens, getIndex, getIndex, getValue
 
Methods inherited from class optics.WaveLengthFunction
getPlot, getPlotPoints, setPlotPoints, setPlotRange, setPlotRange, toGraph, toPlot, toPlot, toPlot
 
Methods inherited from class optics.Optics
getDefaultWaveLength, getErrorStream, getFormatString, getName, getStaticName, getVersion, printError, setDefaultWaveLength, setErrorStream, setFormatString, setMicrons
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CauchyIndex

public CauchyIndex(double a,
                   double b,
                   double c)
CauchyIndex constructor with three parameters for a wavelength in microns.

Parameters:
a - The A constant parameter
b - The B 1/lambda^2 parameter
c - The C 1/lambda^4 paramter

CauchyIndex

public CauchyIndex(double nd,
                   double vd)
Constructor with two parameters of d-line refractive index and the Abbe number.

Parameters:
nd - The refractive index on the d-line
vd - The V number.

CauchyIndex

public CauchyIndex(int glassType)
Constructor with single int glass type parameter containing d-line refractive index and Abbe number of form nnnVVV where refractive index is 1.nnn and Abbe number VV.V.

Parameters:
glassType - integer glass type

CauchyIndex

public CauchyIndex(CauchyIndex n)
Constructor with parameters specified by CauchyIndex.

Parameters:
n - the specifying CauchyIndex.
Method Detail

clone

public CauchyIndex clone()
Method to return a clone of the current CauchyIndex

Overrides:
clone in class java.lang.Object
Returns:
CauchyIndex clone of current

set

public void set(double a,
                double b,
                double c)
Method to set all three parameters

Parameters:
a - constant value
b - 1/lambda^2 value
c - 1/lambda^4 value

set

public void set(double nd,
                double vd)
Method to set with two parameters.

Parameters:
nd - index at d-line
vd - abbe number at d-line.

toString

public java.lang.String toString()
Default String method to get formatted name.

Overrides:
toString in class java.lang.Object
Returns:
String the formatted String.

getIndex

public double getIndex(double lambda)
Method to return refractive index for a specified wavelength in microns.

Specified by:
getIndex in class RefractiveIndex
Parameters:
lambda - wavelength in microns
Returns:
double index at specified wavelength.