public class Wavelength extends Quantity
This code was developed by NASA, Goddard Space Flight Center, Code 587 for the Scientist's Expert Assistant (SEA) project for Next Generation Space Telescope (NGST).
AbstractScienceObject.EventMonitor
NAME_PROPERTY, PENDING_PROPERTY, VALID_PROPERTY
Constructor and Description |
---|
Wavelength() |
Wavelength(double inValue)
primary constructor
|
Wavelength(double inValue,
String inUnits)
Primary constructor.
|
Modifier and Type | Method and Description |
---|---|
static void |
addDefaultUnitsChangeListener(PropertyChangeListener listener) |
static double |
convert(double inVal,
String fromUnits,
String toUnits)
The workhorse of the Wavelength class.
|
double |
getValue(String unitsName)
Returns value in specified Units.
|
Quantity |
newInstance(double inValue)
Returns a new Wavelength object with the specified value in the default units.
|
static void |
removeDefaultUnitsChangeListener(PropertyChangeListener listener) |
protected void |
setValue(double inValue,
String unitsName)
Sets the double value with the specified units.
|
add, addDefaultUnitsChangeListener, equals, fireDefaultUnitsChange, fireDefaultUnitsChange, getAllUnits, getAllUnits, getAllUnitsAbbrev, getAllUnitsAbbrev, getDefaultUnits, getDefaultUnits, getDefaultUnitsAbbrev, getDefaultUnitsProperty, getUnitsAbbrev, getUnitsIgnoreCase, getValue, hashCode, initializeSubClass, isInitialized, removeDefaultUnitsChangeListener, setDefaultUnits, toString, toString
addEventMonitor, addPropertyChangeListener, areNamesEqual, clearAllListeners, clone, compareTo, createDefaultName, firePropertyChange, firePropertyChange, fireReplaceObject, fireReplaceObject, fireReplaceObject, fireVetoableChange, fireVetoableChange, getException, getLabel, getName, getObjectIdString, getObjectIdString, getParent, isHolding, isPending, isTracing, isValid, notifyEventMonitors, propertyChange, removeEventMonitor, removePropertyChangeListener, replaceObject, replaceObjectNYI, setException, setHolding, setName, setParent, setTraceAll, setTracing, writeDebug, writeError
public static final String DEFAULTUNITS_PROPERTY
public static final int E_METER
public static final int E_ANGSTROM
public static final int E_NANOMETER
public static final int E_MICRON
public static final int E_MILLIMETER
public static final int E_CENTIMETER
public static final int E_KILOMETER
public static final int E_HERTZ
public static final int E_KILOHERTZ
public static final int E_MEGAHERTZ
public static final int E_GIGAHERTZ
public static final int E_EV
public static final int E_KILOEV
public static final int E_MEGAEV
public static final String ANGSTROM
public static final String NANOMETER
public static final String MICRON
public static final String MILLIMETER
public static final String CENTIMETER
public static final String METER
public static final String KILOMETER
public static final String HERTZ
public static final String KILOHERTZ
public static final String MEGAHERTZ
public static final String GIGAHERTZ
public static final String EV
public static final String KILOEV
public static final String MEGAEV
public static final String ANGSTROMABBREV
public static final String NANOMETERABBREV
public static final String MICRONABBREV
public static final String MILLIMETERABBREV
public static final String CENTIMETERABBREV
public static final String METERABBREV
public static final String KILOMETERABBREV
public static final String HERTZABBREV
public static final String KILOHERTZABBREV
public static final String MEGAHERTZABBREV
public static final String GIGAHERTZABBREV
public static final String EVABBREV
public static final String KILOEVABBREV
public static final String MEGAEVABBREV
public static final Wavelength MAX_VALUE
public static final Wavelength MIN_VALUE
public Wavelength()
public Wavelength(double inValue)
inValue
- double of the actual Wavelengthpublic Wavelength(double inValue, String inUnits)
inValue
- double of the actual WavelengthinUnits
- string containing the units in which the wavelength is givenpublic Quantity newInstance(double inValue)
newInstance
in class Quantity
public double getValue(String unitsName)
protected void setValue(double inValue, String unitsName)
public static double convert(double inVal, String fromUnits, String toUnits) throws UnitsNotSupportedException
UnitsNotSupportedException
public static void addDefaultUnitsChangeListener(PropertyChangeListener listener)
public static void removeDefaultUnitsChangeListener(PropertyChangeListener listener)
Copyright © 2023 Central Laboratory of the Research Councils. All Rights Reserved.