|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcds.util.Nodata
cds.simbad.BasicData
cds.simbad.Magnitude
Magnitude object: contains a value and a filter definition. Peculiarities are stored in a MagnitudePec object. Several magnitudes for an object are stored in a MagnitudeList object, which can contain one (?) pecul. object. Filter specifications are contained in a MagnitudeFilter object
Field Summary | |
private boolean |
homog
|
private static char |
HOMOGENEITY_FLAG
|
private MagnitudeFilter |
magfilt
|
private FloatPrec |
magfp
|
private static float |
MAXVAL
|
private static float |
MINVAL
|
private static Parameters |
pastro
|
private MagnitudePecul |
pecul
|
Fields inherited from class cds.simbad.BasicData |
dataExists |
Fields inherited from class cds.util.Nodata |
NODATA, NODATA_DBL, NODATA_FLT, NODATA_SHT, NODATA_STR |
Constructor Summary | |
protected |
Magnitude()
Constructor.This one is private: no magnitude should be defined without a MagnitudeFilter definition attached to it |
|
Magnitude(MagnitudeFilter magfilt)
Constructor |
|
Magnitude(MagnitudeFilter magfilt,
FloatPrec mag)
Constructor initializing a magnitude with a FloatPrec value |
|
Magnitude(MagnitudeFilter magfilt,
FloatPrec mag,
boolean homog)
Constructor initializing a magnitude with a FloatPrec value |
|
Magnitude(MagnitudeFilter magfilt,
java.lang.String mag)
Constructor initializing a magnitude with a string of format: '[+-9]9.999:' |
Method Summary | |
boolean |
equals(java.lang.Object o)
MOD-BB 21-01-04 Ajout de cette methode. |
MagnitudeFilter |
getFilter()
Returns the magnitude filter definition |
boolean |
getHomogeneity()
Returns the homogeneity flag value (true or false) |
FloatPrec |
getMagnitude()
Returns the magnitude value |
Magnitude |
set(FloatPrec mag)
Sets a magnitude value |
Magnitude |
set(Magnitude magn)
Sets a Magnitude object (copy) |
Magnitude |
set(java.lang.String magstr)
Sets a magnitude value (and homogeneity flag) |
void |
set(java.lang.String magstr,
boolean homog)
Sets the magnitude value and homogeneity flag |
Magnitude |
setHomogeneity(boolean h)
Sets the homogeneity flag |
Magnitude |
setMagnitude(java.lang.String magstr)
Sets the magnitude value |
java.lang.String |
toString()
Magnitude display function |
Methods inherited from class cds.simbad.BasicData |
exists, setExist, setNodata |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final char HOMOGENEITY_FLAG
private static Parameters pastro
private static float MINVAL
private static float MAXVAL
private MagnitudeFilter magfilt
private FloatPrec magfp
private boolean homog
private MagnitudePecul pecul
Constructor Detail |
protected Magnitude()
public Magnitude(MagnitudeFilter magfilt)
magfilt
- magnitude filter definitionpublic Magnitude(MagnitudeFilter magfilt, java.lang.String mag) throws java.text.ParseException
magfilt
- magnitude filter definitionmag
- magnitude string
java.text.ParseException
- if the magnitude string cannot be parsedpublic Magnitude(MagnitudeFilter magfilt, FloatPrec mag)
magfilt
- magnitude filter definitionmag
- magnitude stringpublic Magnitude(MagnitudeFilter magfilt, FloatPrec mag, boolean homog)
magfilt
- magnitude filter definitionmag
- magnitude stringhomog
- true if homogeneity flag is setMethod Detail |
public Magnitude set(Magnitude magn)
magn
- magnitude object to affect to this one
public Magnitude set(java.lang.String magstr) throws java.text.ParseException
magstr
- string containing the magnitude. Format: '[+-9]9.999:'.
The string should have been trimmed before
java.text.ParseException
- if the string cannot be parsedpublic Magnitude set(FloatPrec mag)
mag
- magnitude value (includes precision)
public void set(java.lang.String magstr, boolean homog) throws java.text.ParseException
magstr
- magnitude in a string (the string should be trimmed)homog
- homogeneity flag
java.text.ParseException
- if the string cannot be parsedpublic Magnitude setMagnitude(java.lang.String magstr) throws java.text.ParseException
magstr
- magnitude in a string (the string should be trimmed)
java.text.ParseException
- if the string cannot be parsedpublic Magnitude setHomogeneity(boolean h)
h
- homogeneity flag
public FloatPrec getMagnitude()
public boolean getHomogeneity()
public MagnitudeFilter getFilter()
public java.lang.String toString()
public boolean equals(java.lang.Object o)
o
- Objet a comparer.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |