org.jscience.astronomy
Class Catalog

java.lang.Object
  extended by org.jscience.astronomy.Catalog

public class Catalog
extends java.lang.Object


Constructor Summary
Catalog()
           
 
Method Summary
 void Catalog(java.lang.String name, int aNpos)
          Initialise the object.
 double[] getEntry(int pos)
           
 java.lang.String getEntryName(int pos)
           
 java.lang.String getName()
          The name of the catalogue.
 int getNumEntries()
          The number of positions in the catalogue.
 void setEntry(int pos, java.lang.String name, double x, double y, double z)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Catalog

public Catalog()
Method Detail

Catalog

public void Catalog(java.lang.String name,
                    int aNpos)
Initialise the object.

This creates the array itsR[], but does not initialise the array values.

Parameters:
aNpos - Obtain space for so many xyz triplets of coordinates.

getName

public java.lang.String getName()
The name of the catalogue.


getNumEntries

public int getNumEntries()
The number of positions in the catalogue.


getEntryName

public java.lang.String getEntryName(int pos)

getEntry

public double[] getEntry(int pos)

setEntry

public void setEntry(int pos,
                     java.lang.String name,
                     double x,
                     double y,
                     double z)