|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectoptics.Optics
optics.WaveLengthFunction
optics.WaveLengthSpectrum
optics.CompoundSpectrum
public class CompoundSpectrum
Class to implement a compound wavelength spectrum being combination of spectrums than can be added, subtracted and multiplied together.
| Field Summary | |
|---|---|
static int |
ADD
Static to specify Added spectrum |
static int |
BASE
Static to specify base spectrum |
static int |
MULTIPLY
Static to specify a Multiplied spectum |
static int |
SUBTRACT
Static to specify Substracted spectrum |
| Fields inherited from class optics.WaveLengthFunction |
|---|
maxPlotLambda, minPlotLambda, plotPoints |
| Fields inherited from class optics.Optics |
|---|
DEFAULT_WAVELENGTH, errorStream, fmt, MICRONS |
| Constructor Summary | |
|---|---|
CompoundSpectrum()
Form a blank CompoundSpectrum with no specified
based spectrum. |
|
CompoundSpectrum(WaveLengthSpectrum base)
Form a CompoundSpectrum with a specified
base spectrum. |
|
| Method Summary | |
|---|---|
void |
addSpectrum(WaveLengthSpectrum s,
int a)
Add a spectrum with a specified action. |
double |
getIntensity(double lambda)
Method to get the intensity at specifed wavelength |
void |
remove(int i)
Method to remove a spectrum from the component list. |
java.lang.String |
toString()
Standard toString method to print information |
| 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 |
|---|
public static final int BASE
public static final int ADD
public static final int SUBTRACT
public static final int MULTIPLY
| Constructor Detail |
|---|
public CompoundSpectrum(WaveLengthSpectrum base)
CompoundSpectrum with a specified
base spectrum.
base - the base spectrumpublic CompoundSpectrum()
CompoundSpectrum with no specified
based spectrum.
Note a base spectrum must added before sensible values
be obtained.
| Method Detail |
|---|
public void addSpectrum(WaveLengthSpectrum s,
int a)
Note the order of spectrums is essentail if there is a mixture of ADD and MULTIPLY. The spectrums are applied in the order they were added.
s - the spectruma - the action to be appliedpublic double getIntensity(double lambda)
getIntensity in class WaveLengthSpectrumlambda - the wavelength in microns
double the intensitypublic void remove(int i)
i - the component indexpublic java.lang.String toString()
toString method to print information
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||