|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--universe.server.database.GlieseCatalog
Field Summary | |
private int |
bytesRead
|
private static int |
CBUF_MAX
Length of longest string we'll be reading in |
private static int |
COMPONENTS
|
private static int |
DEC_DEGREES
|
private static int |
DEC_MINUTES
|
private static int |
DEC_SIGN
|
private static int |
DEGREES
|
private double |
distance
Distance from Sol to the star. |
private static byte |
DM
|
private static int |
DM_NUMBER
|
private boolean |
done
|
private static byte |
DWARF
|
private static byte |
GICLAS
|
private static int |
GICLAS_NUMBER
|
private static byte |
GLIESE
|
private static java.lang.String |
GLIESE_CATALOG
|
private java.io.BufferedReader |
glieseFile
|
private static byte |
HD
|
private static int |
HD_DESIGNATION
|
private static int |
HOURS
|
private static int |
IDENTIFIER
|
private static byte |
LATIN
|
private static byte |
LHS
|
private static int |
LHS_NUMBER
|
private java.util.Vector |
lines
|
private static byte |
LP
|
private static byte |
LTT
|
private static byte |
LUYTEN
|
private double |
magnitude
|
private static int |
MAGNITUDE
|
private static double |
maxRadius
|
private static int |
MINUTES
|
private static java.lang.String |
name
The name (or numeric designation) of the star. |
private byte |
nameValue
|
private static boolean |
negativeDeclination
Is the declination negative? |
private java.lang.String |
nextString
|
private static byte |
NO_NAME
|
private static int |
noNameCount
In rare cases, a star will have to be given a default name which includes this value. |
private static int |
OTHER_DESIGNATION
|
private static int |
PARALLAX
|
private static double |
phi
Right ascension as an angle |
private static java.lang.String |
PROGRESS_MSG
|
private static java.lang.String |
PROGRESS_TITLE
|
private static int |
RA_HOURS
|
private static int |
RA_MINUTES
|
private static int |
RA_SECONDS
|
private static double |
RADIANS
Convenience declaration |
private static int |
REMARKS
|
private static byte |
ROSS
|
private static int |
SECONDS
|
private static int |
SPECTRAL_TYPE
|
protected java.lang.String |
spectralType
|
private static java.lang.String |
STAR_NAME_MAP
|
(package private) static StarNames |
StarNameList
|
private static double |
theta
Declination angle |
private int |
totalBytesInFile
|
private static byte |
UGPMF
|
private static java.lang.String |
USTATUS_MSG
|
private static byte |
VYSSOTSKY
|
private static byte |
WOLF
|
private static byte |
WOOLEY
|
private java.lang.Thread |
worker
|
private double |
x
The X coordinate of the star in 3-space (Sol = 0,0,0) |
private double |
y
The Y coordinate of the star in 3-space (Sol = 0,0,0) |
private double |
z
The Z coordinate of the star in 3-space (Sol = 0,0,0) |
Constructor Summary | |
(package private) |
GlieseCatalog(double radius)
The designated constructor for instances of this class. |
Method Summary | |
private void |
calculateXYZ()
|
private static double |
charToDouble(char[] cbuf)
|
private void |
createWorkerThread()
|
private void |
distance(char[] cbuf)
|
GlieseLine |
get(int index)
|
private static java.lang.String |
getIDString(java.lang.String s)
|
java.util.Vector |
getLines()
|
int |
numofStars()
|
private void |
openGliese(java.lang.String name)
|
private void |
parseLine(java.lang.String str)
|
private static void |
phi(char[] cbuf,
int flag)
|
private void |
resolveName(char[] cbuf,
int source)
Function to try and resolve a name for the star. |
private static void |
theta(char[] cbuf,
int flag)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String PROGRESS_TITLE
private static final java.lang.String PROGRESS_MSG
private static final java.lang.String USTATUS_MSG
private static final java.lang.String GLIESE_CATALOG
private static final java.lang.String STAR_NAME_MAP
private java.util.Vector lines
static StarNames StarNameList
private java.io.BufferedReader glieseFile
private int bytesRead
private boolean done
private java.lang.String nextString
private static double maxRadius
private int totalBytesInFile
private java.lang.Thread worker
private static final int IDENTIFIER
private static final int COMPONENTS
private static final int RA_HOURS
private static final int RA_MINUTES
private static final int RA_SECONDS
private static final int DEC_SIGN
private static final int DEC_DEGREES
private static final int DEC_MINUTES
private static final int SPECTRAL_TYPE
private static final int MAGNITUDE
private static final int PARALLAX
private static final int HD_DESIGNATION
private static final int DM_NUMBER
private static final int GICLAS_NUMBER
private static final int LHS_NUMBER
private static final int OTHER_DESIGNATION
private static final int REMARKS
protected java.lang.String spectralType
private double magnitude
private byte nameValue
private static double phi
private static double theta
private static boolean negativeDeclination
private double distance
private double x
private double y
private double z
private static java.lang.String name
private static int noNameCount
private static final double RADIANS
private static final int CBUF_MAX
private static final int HOURS
private static final int MINUTES
private static final int SECONDS
private static final int DEGREES
private static final byte NO_NAME
private static final byte UGPMF
private static final byte LHS
private static final byte LP
private static final byte LTT
private static final byte DWARF
private static final byte DM
private static final byte GICLAS
private static final byte GLIESE
private static final byte HD
private static final byte VYSSOTSKY
private static final byte WOOLEY
private static final byte WOLF
private static final byte ROSS
private static final byte LUYTEN
private static final byte LATIN
Constructor Detail |
GlieseCatalog(double radius) throws java.lang.InterruptedException
radius
- The maximum radius from Sol to which stars are to be included.
java.lang.InterruptedException
- If access to the catalog data file is interrupted mid-read.Method Detail |
public GlieseLine get(int index)
public int numofStars()
public java.util.Vector getLines()
private void createWorkerThread()
private void openGliese(java.lang.String name)
private void parseLine(java.lang.String str)
private final void resolveName(char[] cbuf, int source)
private static final java.lang.String getIDString(java.lang.String s)
private final void calculateXYZ()
private static final void phi(char[] cbuf, int flag)
private static final void theta(char[] cbuf, int flag)
private final void distance(char[] cbuf)
private static final double charToDouble(char[] cbuf)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |