org.gjt.universe
Class GlieseLine

java.lang.Object
  |
  +--org.gjt.universe.GlieseLine

final class GlieseLine
extends java.lang.Object

Parses each line of of the Gliese Catalog. Should probably be an inner class of GlieseCatalog, but *shrug*.

Version:
1.5 (Rewrote the class to remove the excess baggage of parsing. All parsing is now done in GlieseCatalog.java), 1.4, 1.3, 1.2, 1.1
Author:
Dave Butler (v1.5)

Field Summary
private  double distance
           
private  java.lang.String identifier
           
private  double magnitude
           
private  java.lang.String name
          The name (or numeric designation) of the star.
private  java.lang.String spectralType
           
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) GlieseLine(java.lang.String name, java.lang.String spectralType, double magnitude, double x, double y, double z, double distance)
           
 
Method Summary
(package private)  double getDistance()
           
(package private)  java.lang.String getIdentifier()
           
(package private)  double getMagnitude()
           
(package private)  java.lang.String getName()
           
(package private)  java.lang.String getSpectralType()
           
(package private)  double getX()
           
(package private)  double getY()
           
(package private)  double getZ()
           
 void setName(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

identifier

private java.lang.String identifier

spectralType

private java.lang.String spectralType

magnitude

private double magnitude

distance

private double distance

x

private double x
The X coordinate of the star in 3-space (Sol = 0,0,0)


y

private double y
The Y coordinate of the star in 3-space (Sol = 0,0,0)


z

private double z
The Z coordinate of the star in 3-space (Sol = 0,0,0)


name

private java.lang.String name
The name (or numeric designation) of the star.

Constructor Detail

GlieseLine

GlieseLine(java.lang.String name,
           java.lang.String spectralType,
           double magnitude,
           double x,
           double y,
           double z,
           double distance)
Method Detail

setName

public final void setName(java.lang.String name)

getIdentifier

final java.lang.String getIdentifier()

getMagnitude

final double getMagnitude()

getDistance

final double getDistance()

getX

final double getX()

getY

final double getY()

getZ

final double getZ()

getName

final java.lang.String getName()

getSpectralType

final java.lang.String getSpectralType()


Copyright © 2001 Universe Dev Team All Rights Reserved.