|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoptics.Optics
optics.WaveLengthFunction
optics.RefractiveIndex
public abstract class RefractiveIndex
Abstract class for refractive index being a scalar. This also contains static classes to specify a Refractive Index by a String/Tokens.
Field Summary | |
---|---|
static RefractiveIndex |
air
Static RefractiveIndex to represent air,
being an AirIndex with a default index
of Constants.AIR . |
protected double |
currentIndex
Current numerical value of the index, used to prevent multiple calcualations of complex index calcualtions. |
protected double |
currentWaveLength
The current value of the wavelength, used to prevent multiple calcualations of complex index calcualtions. |
Fields inherited from class optics.WaveLengthFunction |
---|
maxPlotLambda, minPlotLambda, plotPoints |
Fields inherited from class optics.Optics |
---|
DEFAULT_WAVELENGTH, errorStream, fmt, MICRONS, version |
Constructor Summary | |
---|---|
RefractiveIndex()
|
Method Summary | |
---|---|
static RefractiveIndex |
fromString(String s)
Static method to get a Refractive Index from a specifying String. |
static RefractiveIndex |
fromTokens(StringTokenizer tokens)
Static method to get a Refractive Index set of Tokens. |
double |
getIndex()
Method to return the refarctive index at the current DEFAULT_WAVELENGTH . |
abstract double |
getIndex(double lambda)
Method to return the value of the refractive index. |
double |
getIndex(Ray r)
Method to return value of the refrective index with wavelength specifed by a Ray, or one it extending classes. |
double |
getnd()
Method to get the index at the Helium-d line. |
double |
getne()
Metho to ge tthe index at the Mercury e-line |
double |
getValue(double lambda)
Overload of method for WavelengthFunction |
double |
getVd()
Method to get the index at the Abbe, or Vd number. |
double |
getVe()
Method to get the index at the Mercury e-line Abbe, or Ve number. |
static void |
main(String[] args)
Test method to read a Refractive Index from a String and plot as a degault graph. |
Methods inherited from class optics.WaveLengthFunction |
---|
getPlot, getPlotPoints, setPlot, 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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static RefractiveIndex air
RefractiveIndex
to represent air,
being an AirIndex
with a default index
of Constants.AIR
.
AirIndex
protected double currentIndex
protected double currentWaveLength
Constructor Detail |
---|
public RefractiveIndex()
Method Detail |
---|
public abstract double getIndex(double lambda)
lambda
- the wavelength.
double
the refractive index value.public double getIndex()
DEFAULT_WAVELENGTH
.
double
the refractive index value.public double getIndex(Ray r)
r
- the ray.public double getValue(double lambda)
WavelengthFunction
getValue
in class WaveLengthFunction
lambda
- the wavelength.
double
the refractive index value.public double getnd()
double
index at He-d linepublic double getne()
double
index at Hg e linepublic double getVd()
double
the Vd numberpublic double getVe()
double
the Vd numberpublic static RefractiveIndex fromString(String s)
s
- specifying String
RefractiveIndex
fails to Airpublic static RefractiveIndex fromTokens(StringTokenizer tokens)
tokens
- set of tokens
RefractiveIndex
fails to Airpublic static void main(String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |