|
|||||||||
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 value that depends on wavelength.
Field Summary | |
---|---|
static RefractiveIndex |
air
Static RefractiveIndex to represent air,
being a FixedIndex on index 1.0 |
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 |
Constructor Summary | |
---|---|
RefractiveIndex()
|
Method Summary | |
---|---|
static RefractiveIndex |
fromString(java.lang.String s)
Static method to get a Refractive Index from a specifying String. |
static RefractiveIndex |
fromTokens(java.util.StringTokenizer tokens)
Static method to get a Refractive Index set of tokens with the first token giving the type |
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 |
getValue(double lambda)
Overload of method for WavelengthFunction |
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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static RefractiveIndex air
RefractiveIndex
to represent air,
being a FixedIndex
on index 1.0
FixedIndex
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 static RefractiveIndex fromString(java.lang.String s)
s
- specifying String
RefractiveIndex
fails to Airpublic static RefractiveIndex fromTokens(java.util.StringTokenizer tokens)
tokens
- set of tokens
RefractiveIndex
fails to Air
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |