public interface Wavelength1DModel extends ScienceObjectNodeModel
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).
DATA_SOURCE_PROPERTY, MORE_DATA_PROPERTY
NAME_PROPERTY, PENDING_PROPERTY, VALID_PROPERTY
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(ReplaceablePropertyChangeListener listener)
Register to be notified of change events on this model.
|
double |
getArea()
Return the total area "under the curve" for all wavelengths
|
double |
getArea(boolean interpolate)
Return the total area "under the curve" for all wavelengths
|
double |
getArea(Wavelength minWL,
Wavelength maxWL)
Return the area "under the curve" of the model from the specified
minimum to maximum Wavelengths.
|
double |
getArea(Wavelength minWL,
Wavelength maxWL,
boolean interpolate)
Return the area "under the curve" of the model from the specified
minimum to maximum Wavelengths.
|
String |
getFluxUnits()
returns the units string for the data values in the model.
|
int |
getNumPoints()
Returns the number of data points in the model.
|
double |
getValue(Wavelength inWL)
Return the value of the model at the specified Wavelength.
|
boolean |
isEditable()
Return true if model is editable after instantiation, false otherwise
|
void |
removePropertyChangeListener(ReplaceablePropertyChangeListener listener)
Un-register to be notified of change events on this model.
|
void |
setFluxUnits(String newUnits)
sets the units string for the data values in the model, may be null
|
void |
setValue(Wavelength inWl,
double newVal)
Sets the data value for specified wavelength.
|
double[] |
toArrayData(double[] wavelengths)
Return an array of doubles containing values from the model
at the specfied array of wavelengths values.
|
double[] |
toArrayData(Wavelength minWL,
Wavelength maxWL,
int nPts)
Return an array of doubles containing the data in the model.
|
double[] |
toArrayWavelengths(Wavelength minWL,
Wavelength maxWL,
int nPts)
Return an array of doubles containing a list of wavelengths points in the model.
|
double[] |
toArrayWavelengths(Wavelength minWL,
Wavelength maxWL,
int nPts,
String units)
Return an array of doubles containing a list of wavelengths points in the model.
|
addChild, getChildren, getDataSource, isMoreDataAvailable, isPending, removeAllChildren, removeChild, replaceChild, requestMoreData, retrieveMoreData, setDataSource, setMoreDataAvailable
clearAllListeners, clone, firePropertyChange, getException, getLabel, getName, getParent, isHolding, isTracing, isValid, setException, setHolding, setName, setParent, setTracing
replaceObject
propertyChange
double getValue(Wavelength inWL)
double getArea(Wavelength minWL, Wavelength maxWL)
double getArea(Wavelength minWL, Wavelength maxWL, boolean interpolate)
double getArea()
double getArea(boolean interpolate)
boolean isEditable()
void setValue(Wavelength inWl, double newVal)
void addPropertyChangeListener(ReplaceablePropertyChangeListener listener)
addPropertyChangeListener
in interface ScienceObjectModel
void removePropertyChangeListener(ReplaceablePropertyChangeListener listener)
removePropertyChangeListener
in interface ScienceObjectModel
double[] toArrayData(Wavelength minWL, Wavelength maxWL, int nPts)
double[] toArrayData(double[] wavelengths)
double[] toArrayWavelengths(Wavelength minWL, Wavelength maxWL, int nPts)
double[] toArrayWavelengths(Wavelength minWL, Wavelength maxWL, int nPts, String units)
int getNumPoints()
String getFluxUnits()
void setFluxUnits(String newUnits) throws UnitsNotSupportedException
UnitsNotSupportedException
Copyright © 2023 Central Laboratory of the Research Councils. All Rights Reserved.