|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcds.astro.Sptype
public class Sptype
Spectral type
Field Summary | |
---|---|
static int |
_CN
|
static int |
_comp
|
static int |
_em
|
static int |
_m
|
static int |
_n
|
static int |
_n1
|
static int |
_n2
|
static int |
_neb
|
static int |
_nn
|
static int |
_NONE
|
static int |
_pec
|
static int |
_s
|
static int |
_sh
|
static int |
_ss
|
static int |
_var
|
static int |
_W
|
static char |
EOS
|
static long |
GENERAL_BRACKETS
|
static int |
GENERAL_BRACKETS_POS
|
static int |
GENERAL_FLAGS_BEGIN
|
static int |
GENERAL_FLAGS_LENGTH
|
static long |
GENERAL_FLAGS_MASK
|
static long |
GENERAL_INCOMPLETENESS
|
static int |
GENERAL_INCOMPLETENESS_POS
|
static int |
LUM_BEGIN
|
static int |
LUM_LENGTH
|
static long |
LUM_UNCERTAINTY_FLAG
|
static int |
LUM_UNCERTAINTY_FLAG_POS
|
protected static java.lang.Object[] |
lumCodes
|
static int |
NOSUBTYPE_VALUE
|
static java.lang.String |
Of_FLAGS
|
static int |
PEC_BEGIN
|
static int |
PEC_LENGTH
|
static long |
PEC_UNCERTAINTY_FLAG
|
static int |
PEC_UNCERTAINTY_FLAG_POS
|
protected static java.lang.Object[] |
regularTempCodes
|
static int |
TEMP_BEGIN
|
static int |
TEMP_FLAGS_BEGIN
|
static int |
TEMP_FLAGS_LENGTH
|
static long |
TEMP_FLAGS_MASK
|
static long |
TEMP_HOUK_FLAG
|
static int |
TEMP_HOUK_FLAG_POS
|
static long |
TEMP_INCOMPLETE_FLAG
|
static int |
TEMP_INCOMPLETE_FLAG_POS
|
static int |
TEMP_LENGTH
|
static long |
TEMP_MK_FLAG
|
static int |
TEMP_MK_FLAG_POS
|
static long |
TEMP_NOSUBTYPE_FLAG
|
static int |
TEMP_NOSUBTYPE_FLAG_POS
|
static long |
TEMP_UNCERTAINTY_FLAG
|
static int |
TEMP_UNCERTAINTY_FLAG_POS
|
static int |
UNKNOWN_CODE
|
static int |
WD_A_FLAG
|
static int |
WD_B_FLAG
|
static int |
WD_C_FLAG
|
static int |
WD_E_FLAG
|
static int |
WD_H_FLAG
|
static int |
WD_O_FLAG
|
static int |
WD_P_FLAG
|
static int |
WD_Q_FLAG
|
static int |
WD_V_FLAG
|
static int |
WD_X_FLAG
|
static int |
WD_Z_FLAG
|
Constructor Summary | |
---|---|
Sptype()
Empty constructor |
|
Sptype(Sptype sp)
Copy constructor. |
|
Sptype(java.lang.String sp)
Constructor with initialisation by a spectral type string |
|
Sptype(java.lang.String spstr,
long spbin)
Constructor to use ONLY with an already parsed and correct spectral type. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Copy values parameters |
static boolean |
compare(java.lang.String sp1,
java.lang.String sp2)
Compare two spectral type strings after some canonical normalisation |
java.lang.String |
decode()
Decode the current type from binary into the string. |
static java.lang.String |
decode(long binsp)
Decode the given binary type into a string. |
boolean |
equals(java.lang.Object o)
Spectral type object comparison |
java.lang.String |
get()
Get the spectral type string |
static java.util.ArrayList |
getLumCodes()
Get the list of luminosity codes (for displaying purpose) |
static java.lang.String |
getNonParsableItems(java.lang.String spstr)
Get the string of non parsable elements in a spectral type string |
long |
getSpBin()
Get the binary spectral type value |
long |
getSpMask()
Get the spectral type binary mask (used for sql queries) |
java.lang.String |
getSpNumeric()
Get the current spectral type in a edited form (TTTTTTTT.LLLL.ppp0) |
static java.lang.String |
getSpNumeric(long spbinary)
Get the given binary spectral type in a edited form (TT.TTTTTT.LLLL.ppp0) |
static java.util.ArrayList |
getTempCodes()
Get the list of temperature codes (for displaying purpose) |
int |
hashCode()
Compute the hashcode |
boolean |
hasValue()
Checks wether the SpectralType has a value |
int |
parse(java.lang.String sp)
Parse a spectral type string |
int |
parse(java.lang.String sp,
int offset)
Parse a spectral type string |
void |
reset()
Resets a SpectralType object to nodata |
void |
set(Sptype sp)
Sets the SpectralType from another SpectralType object |
java.lang.String |
toString()
returns the spectral type string, without spaces between the fields |
java.lang.String |
toString(boolean separFields)
returns the spectral type string. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int UNKNOWN_CODE
public static final int GENERAL_FLAGS_BEGIN
public static final int GENERAL_FLAGS_LENGTH
public static final long GENERAL_FLAGS_MASK
public static final long GENERAL_INCOMPLETENESS
public static final int GENERAL_INCOMPLETENESS_POS
public static final long GENERAL_BRACKETS
public static final int GENERAL_BRACKETS_POS
public static final int TEMP_FLAGS_BEGIN
public static final int TEMP_FLAGS_LENGTH
public static final long TEMP_FLAGS_MASK
public static final long TEMP_UNCERTAINTY_FLAG
public static final int TEMP_UNCERTAINTY_FLAG_POS
public static final long TEMP_NOSUBTYPE_FLAG
public static final int TEMP_NOSUBTYPE_FLAG_POS
public static final long TEMP_INCOMPLETE_FLAG
public static final int TEMP_INCOMPLETE_FLAG_POS
public static final long TEMP_HOUK_FLAG
public static final int TEMP_HOUK_FLAG_POS
public static final long TEMP_MK_FLAG
public static final int TEMP_MK_FLAG_POS
public static final int TEMP_BEGIN
public static final int TEMP_LENGTH
public static final int LUM_BEGIN
public static final int LUM_LENGTH
public static final long LUM_UNCERTAINTY_FLAG
public static final int LUM_UNCERTAINTY_FLAG_POS
public static final int PEC_BEGIN
public static final int PEC_LENGTH
public static final long PEC_UNCERTAINTY_FLAG
public static final int PEC_UNCERTAINTY_FLAG_POS
public static final char EOS
public static final int _CN
public static final int _W
public static final int _m
public static final int _s
public static final int _n
public static final int _n1
public static final int _n2
public static final int _nn
public static final int _sh
public static final int _neb
public static final int _ss
public static final int _var
public static final int _em
public static final int _comp
public static final int _pec
public static final int NOSUBTYPE_VALUE
public static final int _NONE
public static final int WD_A_FLAG
public static final int WD_B_FLAG
public static final int WD_O_FLAG
public static final int WD_C_FLAG
public static final int WD_Q_FLAG
public static final int WD_Z_FLAG
public static final int WD_X_FLAG
public static final int WD_P_FLAG
public static final int WD_H_FLAG
public static final int WD_E_FLAG
public static final int WD_V_FLAG
public static final java.lang.String Of_FLAGS
protected static java.lang.Object[] regularTempCodes
protected static java.lang.Object[] lumCodes
Constructor Detail |
---|
public Sptype()
public Sptype(java.lang.String sp) throws java.text.ParseException
sp
- spectral type string.
java.text.ParseException
- if the spectral type is incorrectpublic Sptype(Sptype sp)
sp
- SpectralType objectpublic Sptype(java.lang.String spstr, long spbin)
spstr
- spectral type string (already normalized)spbin
- binary spectral typeMethod Detail |
---|
public void reset()
public boolean hasValue()
public void set(Sptype sp)
sp
- SpectralType object to copypublic java.lang.String get()
public long getSpBin()
public java.lang.String getSpNumeric()
public static java.lang.String getSpNumeric(long spbinary)
spbinary
-
public long getSpMask()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(boolean separFields)
separFields
- if true, the fields are separated by a space
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- Object to compare
public int hashCode()
hashCode
in class java.lang.Object
public static java.util.ArrayList getTempCodes()
public static java.util.ArrayList getLumCodes()
public int parse(java.lang.String sp) throws java.text.ParseException
sp
- spectral type string
java.text.ParseException
public int parse(java.lang.String sp, int offset) throws java.text.ParseException
sp
- spectral type stringoffset
- first char to use in parsing
java.text.ParseException
public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String decode()
public static java.lang.String decode(long binsp)
public static java.lang.String getNonParsableItems(java.lang.String spstr)
spstr
- spectral type to analyze
public static boolean compare(java.lang.String sp1, java.lang.String sp2)
sp1
- first spectral type stringsp2
- second spectral type string
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |