|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Wavelength1DModel
This interface provides a top-level interface for lists that are indexed by wavelengths. Works with the Wavlength class in the Quantity hierarchy to provide structure for containing, querying, and access information such as detector throughputs, spectra, and other data where the datapoints are organized by wavelengths
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).
Field Summary |
---|
Fields inherited from interface jsky.science.ScienceObjectNodeModel |
---|
DATA_SOURCE_PROPERTY, MORE_DATA_PROPERTY |
Fields inherited from interface jsky.science.ScienceObjectModel |
---|
NAME_PROPERTY, PENDING_PROPERTY, VALID_PROPERTY |
Method Summary | |
---|---|
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. |
java.lang.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(java.lang.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,
java.lang.String units)
Return an array of doubles containing a list of wavelengths points in the model. |
Methods inherited from interface jsky.science.ScienceObjectNodeModel |
---|
addChild, getChildren, getDataSource, isMoreDataAvailable, isPending, removeAllChildren, removeChild, replaceChild, requestMoreData, retrieveMoreData, setDataSource, setMoreDataAvailable |
Methods inherited from interface jsky.science.ScienceObjectModel |
---|
clearAllListeners, clone, firePropertyChange, getException, getLabel, getName, getParent, isHolding, isTracing, isValid, setException, setHolding, setName, setParent, setTracing |
Methods inherited from interface jsky.util.ReplaceablePropertyChangeListener |
---|
replaceObject |
Methods inherited from interface java.beans.PropertyChangeListener |
---|
propertyChange |
Method Detail |
---|
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, java.lang.String units)
int getNumPoints()
java.lang.String getFluxUnits()
void setFluxUnits(java.lang.String newUnits) throws UnitsNotSupportedException
UnitsNotSupportedException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |