|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjsky.science.AbstractScienceObject
jsky.science.Passband
public class Passband
Passband class provides support for range of wavelengths. Including a static list of standard passbands (U B V for example).
This code was developed by NASA, Goddard Space Flight Center, Code 588 for the Scientist's Expert Assistant (SEA) project for Next Generation Space Telescope (NGST).
Nested Class Summary |
---|
Nested classes/interfaces inherited from class jsky.science.AbstractScienceObject |
---|
AbstractScienceObject.EventMonitor |
Field Summary | |
---|---|
static java.lang.String |
HIGH_PROPERTY
bound property change name for change in the HighWavelength |
static java.lang.String |
LOW_PROPERTY
bound property change name for change in the LowWavelength |
static java.lang.String |
MIDDLE_PROPERTY
bound property change name for change in the MiddleWavelength |
Fields inherited from interface jsky.science.ScienceObjectModel |
---|
NAME_PROPERTY, PENDING_PROPERTY, VALID_PROPERTY |
Constructor Summary | |
---|---|
Passband()
|
|
Passband(java.lang.String val)
Creates a new Passband from a string specifying the range in nanometers. |
|
Passband(java.lang.String inName,
Wavelength inLowWL,
Wavelength inHighWL,
Wavelength inMiddleWL)
Creates a new Passband with low, high and middle values specified in Wavelengths. |
|
Passband(Wavelength inLowWL,
Wavelength inHighWL)
Creates a new Passband with low and high values specified in Wavelengths. |
|
Passband(Wavelength inLowWL,
Wavelength inHighWL,
Wavelength inMiddleWL)
Creates a new Passband with low, high and middle values specified in Wavelengths. |
Method Summary | |
---|---|
boolean |
contains(Wavelength inWL)
Returns true if passband contains specified wavelength |
boolean |
equals(java.lang.Object inO)
Default implementation: checks for same name only |
static Passband |
findStandardContaining(Wavelength inWL)
Returns the first standard passband that contains the specified wavelength. |
Wavelength |
getHighWavelength()
Returns high end of the passband as a Wavelength |
Wavelength |
getLowWavelength()
Returns low end of the passband as a Wavelength |
Wavelength |
getMiddleWavelength()
Returns middle or central Wavelength. |
static java.lang.String[] |
getStandardBroadBands()
Returns array of Strings containing (arbitrarily) only the names of Passbands where the length of the name is a single character |
static Passband |
getStandardPassband(java.lang.String pName)
Returns the Passband in the standard list by name. |
static java.lang.String[] |
getStdBands()
Returns String array containing the names of the defined standard passbands |
void |
setHighWavelength(Wavelength inWL)
Sets the Wavelength marking the high end of the Passband. |
void |
setLowWavelength(Wavelength inWL)
Sets the Wavelength marking the low end of the Passband. |
void |
setMiddleWavelength(Wavelength inWL)
Sets the Wavelength marking the middle of the Passband. |
static void |
setStdBands(java.lang.String[] bands)
Replaces the standard pass band list with elements parsed from the specified array of strings. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String LOW_PROPERTY
public static final java.lang.String MIDDLE_PROPERTY
public static final java.lang.String HIGH_PROPERTY
Constructor Detail |
---|
public Passband()
public Passband(Wavelength inLowWL, Wavelength inHighWL)
public Passband(Wavelength inLowWL, Wavelength inHighWL, Wavelength inMiddleWL)
public Passband(java.lang.String inName, Wavelength inLowWL, Wavelength inHighWL, Wavelength inMiddleWL)
public Passband(java.lang.String val) throws java.lang.NumberFormatException
val
- String containing the range in the form "low-high" or "low"
java.lang.NumberFormatException
- if it finds invalid numbersMethod Detail |
---|
public boolean equals(java.lang.Object inO)
AbstractScienceObject
equals
in class AbstractScienceObject
public static java.lang.String[] getStdBands()
public static java.lang.String[] getStandardBroadBands()
public static void setStdBands(java.lang.String[] bands)
public static Passband getStandardPassband(java.lang.String pName)
public static Passband findStandardContaining(Wavelength inWL)
public boolean contains(Wavelength inWL)
public Wavelength getHighWavelength()
public void setHighWavelength(Wavelength inWL)
inWL
- middle value as a Wavelengthpublic Wavelength getLowWavelength()
public void setLowWavelength(Wavelength inWL)
inWL
- middle value as a Wavelengthpublic Wavelength getMiddleWavelength()
public void setMiddleWavelength(Wavelength inWL)
inWL
- middle value as a Wavelength
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |