public static class NOVAS.CelestialObject
extends java.lang.Object
For more information, see NOVAS_C3.1_Guide.pdf, page C-42.
Modifier and Type | Field and Description |
---|---|
java.lang.String |
name
Name of the object (limited to 50 characters).
|
short |
number
Object number.
|
NOVAS.CatalogEntry |
star
Basic astrometric data for any celestial object located outside the solar
system; the catalog data for a star.
|
short |
type
Type of object.
|
Constructor and Description |
---|
NOVAS.CelestialObject(NOVAS.CatalogEntry star)
Create initialized instance for type = 2.
|
NOVAS.CelestialObject(short type,
short number,
java.lang.String name)
Create initialized instance for type = 0 or type = 1.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString()
Dump attributes.
|
public short type
0 = major planet Pluto, Sun, or Moon
1 = minor planet
2 = object located outside the solar system (star, nebula, galaxy, etc.)
public short number
For type = 0: Mercury → 1, ..., Pluto → 9, Sun → 10, Moon → 11.
For type = 1: minor planet number.
For type = 2: set to 0 (object is fully specified by star attribute)
public java.lang.String name
public NOVAS.CatalogEntry star
Set to null for type != 2.
public NOVAS.CelestialObject(short type, short number, java.lang.String name)
public NOVAS.CelestialObject(NOVAS.CatalogEntry star)