org.jscience.astronomy.catalogs.hipparcos
Class HipparcosStarFactory

java.lang.Object
  extended by org.jscience.astronomy.catalogs.hipparcos.HipparcosStarFactory
Direct Known Subclasses:
HipparcosRadiusStarFactory

public class HipparcosStarFactory
extends java.lang.Object

For given alpha delta and d get all stars from the database in that area. Optional vlim may be given and hipOnly.


Constructor Summary
protected HipparcosStarFactory(double vlim, boolean hipOnly)
          Creates a new StarFactory object.
  HipparcosStarFactory(double alpha, double delta, double d)
          Creates a new StarFactory object.
  HipparcosStarFactory(double alpha, double delta, double d, double vlim, boolean hipOnly)
          Creates a new StarFactory object.
 
Method Summary
 java.lang.String[] getCatprogs()
          DOCUMENT ME!
protected  java.io.BufferedReader getDstream()
          DOCUMENT ME!
 HipparcosCatalogEntry getNext()
          keep getting stars until none left
 double getVlim()
          DOCUMENT ME!
protected  boolean loadFromDisk(java.lang.String catprog)
          DOCUMENT ME!
protected  boolean loadFromURL()
          DOCUMENT ME!
protected  boolean openStream()
          DOCUMENT ME!
protected  void setDstream(java.io.BufferedReader dstream)
          DOCUMENT ME!
protected  void skipToData()
          Skip down to next PRE tag in html stream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HipparcosStarFactory

protected HipparcosStarFactory(double vlim,
                               boolean hipOnly)
Creates a new StarFactory object.

Parameters:
vlim - DOCUMENT ME!
hipOnly - DOCUMENT ME!

HipparcosStarFactory

public HipparcosStarFactory(double alpha,
                            double delta,
                            double d)
Creates a new StarFactory object.

Parameters:
alpha - DOCUMENT ME!
delta - DOCUMENT ME!
d - DOCUMENT ME!

HipparcosStarFactory

public HipparcosStarFactory(double alpha,
                            double delta,
                            double d,
                            double vlim,
                            boolean hipOnly)
Creates a new StarFactory object.

Parameters:
alpha - DOCUMENT ME!
delta - DOCUMENT ME!
d - DOCUMENT ME!
vlim - DOCUMENT ME!
hipOnly - DOCUMENT ME!
Method Detail

openStream

protected boolean openStream()
DOCUMENT ME!

Returns:
DOCUMENT ME!

loadFromDisk

protected boolean loadFromDisk(java.lang.String catprog)
DOCUMENT ME!

Parameters:
catprog - DOCUMENT ME!
Returns:
DOCUMENT ME!

loadFromURL

protected boolean loadFromURL()
DOCUMENT ME!

Returns:
DOCUMENT ME!

skipToData

protected void skipToData()
                   throws java.lang.Exception
Skip down to next PRE tag in html stream

Throws:
java.lang.Exception - DOCUMENT ME!

getNext

public HipparcosCatalogEntry getNext()
                              throws java.util.NoSuchElementException
keep getting stars until none left

Returns:
DOCUMENT ME!
Throws:
java.util.NoSuchElementException - DOCUMENT ME!

getCatprogs

public java.lang.String[] getCatprogs()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getVlim

public double getVlim()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getDstream

protected java.io.BufferedReader getDstream()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setDstream

protected void setDstream(java.io.BufferedReader dstream)
DOCUMENT ME!

Parameters:
dstream - DOCUMENT ME!