optics
Class WaveLengthSpectrum

java.lang.Object
  extended by optics.Optics
      extended by optics.WaveLengthFunction
          extended by optics.WaveLengthSpectrum
Direct Known Subclasses:
CompoundSpectrum, ConstantSpectrum, PlankSpectrum

public abstract class WaveLengthSpectrum
extends WaveLengthFunction

Abstract class for intensity spectral response. Needs to be extended by one of the other classes.


Field Summary
 
Fields inherited from class optics.WaveLengthFunction
maxPlotLambda, minPlotLambda, plotPoints
 
Fields inherited from class optics.Optics
DEFAULT_WAVELENGTH, errorStream, fmt, MICRONS
 
Constructor Summary
WaveLengthSpectrum()
           
 
Method Summary
abstract  double getIntensity(double lambda)
          Method to get the intensity at specific wavelength.
 double getValue(double lambda)
          Method to define the abstract method in 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
 

Constructor Detail

WaveLengthSpectrum

public WaveLengthSpectrum()
Method Detail

getIntensity

public abstract double getIntensity(double lambda)
Method to get the intensity at specific wavelength. Needs to be defined in extending classes.

Parameters:
lambda - the wavelength
Returns:
double the intensity

getValue

public double getValue(double lambda)
Method to define the abstract method in WaveLengthFunction

Specified by:
getValue in class WaveLengthFunction
Parameters:
lambda - the wavelength
Returns:
double the value