|
||||||||
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 |
_HOUK
|
static long |
_INCOMPLETE
|
static int |
_m
|
static int |
_MK
|
static int |
_n
|
static int |
_neb
|
static int |
_nn
|
static int |
_NONE
|
static long |
_NOSUBTYPE
|
static int |
_pec
|
static int |
_s
|
static int |
_sh
|
static long |
_UNCERTAINTY
|
static int |
_var
|
static int |
_W
|
static int |
_WD_DA10
|
static int |
_WD_H_FLAG
|
static int |
_WD_P_FLAG
|
static int |
_WD_WD_FLAG
|
static int |
_WD_X_FLAG
|
static char |
EOS
|
static int |
NOSUBTYPE_VALUE
|
protected static int[] |
roundSubsubtype1
|
protected static int[] |
roundSubsubtype2
|
protected static int[] |
roundSubsubtype4
|
protected static int[] |
tempCodes
|
protected static java.lang.String |
tempLetters
|
static int |
UNKNOWN_CODE
|
Constructor Summary | |
---|---|
Sptype()
Empty constructor |
|
Sptype(Sptype sp)
Copy constructor. |
|
Sptype(java.lang.String sp)
Constructor with initialisation by a spectral type string |
Method Summary | |
---|---|
java.lang.Object |
clone()
Copy values parameters |
boolean |
equals(java.lang.Object o)
Spectral type object comparison |
java.lang.String |
get()
Get the spectral type string |
long |
getSpBin()
Get the binary spectral type value |
long |
getSpMask()
Get the spectral type binary mask (used for sql queries) |
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 |
void |
set(java.lang.String sp)
Sets a spectral type value to this object |
java.lang.String |
toString()
returns the spectral type string |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int UNKNOWN_CODE
public static final long _UNCERTAINTY
public static final long _NOSUBTYPE
public static final long _INCOMPLETE
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 _nn
public static final int _sh
public static final int _neb
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 _HOUK
public static final int _MK
public static final int _NONE
public static final int _WD_WD_FLAG
public static final int _WD_X_FLAG
public static final int _WD_H_FLAG
public static final int _WD_P_FLAG
public static final int _WD_DA10
protected static final java.lang.String tempLetters
protected static final int[] roundSubsubtype4
protected static final int[] roundSubsubtype2
protected static final int[] roundSubsubtype1
protected static int[] tempCodes
Constructor Detail |
---|
public Sptype()
public Sptype(java.lang.String sp) throws java.text.ParseException
sp
- spectral type string. Currently no validity check is made on
the string
java.text.ParseException
- if the spectral type is incorrectpublic Sptype(Sptype sp)
sp
- SpectralType objectMethod Detail |
---|
public void reset()
public boolean hasValue()
public void set(java.lang.String sp) throws java.text.ParseException
sp
- spectral type string. Currently no validity check is made on
the string
java.text.ParseException
- if the spectral type is incorrectpublic void set(Sptype sp)
sp
- SpectralType object to copypublic java.lang.String get()
public long getSpBin()
public long getSpMask()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- Object to compare
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
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |