optics
Class PlankSpectrum

java.lang.Object
  extended by optics.Optics
      extended by optics.WaveLengthFunction
          extended by optics.WaveLengthSpectrum
              extended by optics.PlankSpectrum

public class PlankSpectrum
extends WaveLengthSpectrum

Class to implement Plank Spectral response specified by temperature and constant emissitivity.


Field Summary
protected  double emissivity
          The emisivity
protected  double temperature
          The temperature in Kelvin
 
Fields inherited from class optics.WaveLengthFunction
maxPlotLambda, minPlotLambda, plotPoints
 
Fields inherited from class optics.Optics
DEFAULT_WAVELENGTH, errorStream, fmt, MICRONS
 
Constructor Summary
PlankSpectrum()
          Form a PlankSpectrum with default temperature of 3,000 K and emisivity of 1.0.
PlankSpectrum(double t)
          Form a PlankSpectrum with specfied temperature and emisivity of 1.0.
PlankSpectrum(double t, double e)
          Form a PlankSpectrum with specfied temperature and emisivity.
 
Method Summary
 double getIntensity(double lambda)
          Method Get the intensity at a specified wavelength.
 void setEmissivity(double e)
          Method to set emissivity
 void setTemperature(double t)
          Method to set the temperature.
 java.lang.String toString()
          Method to return default toString()
 
Methods inherited from class optics.WaveLengthSpectrum
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

temperature

protected double temperature
The temperature in Kelvin


emissivity

protected double emissivity
The emisivity

Constructor Detail

PlankSpectrum

public PlankSpectrum()
Form a PlankSpectrum with default temperature of 3,000 K and emisivity of 1.0.


PlankSpectrum

public PlankSpectrum(double t)
Form a PlankSpectrum with specfied temperature and emisivity of 1.0.

Parameters:
t - temperature in Kelvin.

PlankSpectrum

public PlankSpectrum(double t,
                     double e)
Form a PlankSpectrum with specfied temperature and emisivity.

Parameters:
t - temperature in degrees Kelvin
e - emissivity
Method Detail

toString

public java.lang.String toString()
Method to return default toString()

Overrides:
toString in class java.lang.Object
Returns:
String informative String.

setTemperature

public void setTemperature(double t)
Method to set the temperature.

Parameters:
t - the temperature in Kelvin

setEmissivity

public void setEmissivity(double e)
Method to set emissivity

Parameters:
e - the temperature

getIntensity

public double getIntensity(double lambda)
Method Get the intensity at a specified wavelength.

Specified by:
getIntensity in class WaveLengthSpectrum
Parameters:
lambda - wavelength in microns
Returns:
double the intensity.