stsci.factory
Class HIPfactory

java.lang.Object
  |
  +--stsci.factory.Factory
        |
        +--stsci.factory.WebFactory
              |
              +--stsci.factory.ArcObjFactory
                    |
                    +--stsci.factory.HIPfactory
Direct Known Subclasses:
TYCfactory

public class HIPfactory
extends ArcObjFactory

Factory for the hipparcos web server. Returns only hipparcos & tyc stars.


Field Summary
protected  boolean hipDone
           
protected  boolean hipOnly
           
 
Fields inherited from class stsci.factory.ArcObjFactory
alpha, delta, r, vlim
 
Fields inherited from class stsci.factory.WebFactory
local
 
Fields inherited from class stsci.factory.Factory
dstream, finished, name, opened
 
Constructor Summary
HIPfactory()
           
 
Method Summary
 java.lang.String getCmd()
          The id and different parameters to the command will be differnt for each system.
 java.lang.String getURL()
          The id and different parameters to the web page will be differnt for each system.
 boolean hipDone()
          Got all the hipstars yet ?
protected static HIPstar makeStar(java.lang.String str)
          Parse a line for data
 java.lang.Object nextObj()
          The abstract method to consume input from dstream and create the next object.
 void setTyc()
          Get Tyc Stars too.
 
Methods inherited from class stsci.factory.ArcObjFactory
getNext, init
 
Methods inherited from class stsci.factory.WebFactory
finished, open, openCmd, openURL, setLocal, skipToData
 
Methods inherited from class stsci.factory.Factory
openDisk, setFinished
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hipOnly

protected boolean hipOnly

hipDone

protected boolean hipDone
Constructor Detail

HIPfactory

public HIPfactory()
Method Detail

setTyc

public void setTyc()
Get Tyc Stars too.

hipDone

public boolean hipDone()
Got all the hipstars yet ?

getURL

public java.lang.String getURL()
Description copied from class: WebFactory
The id and different parameters to the web page will be differnt for each system. This abstarct method will be called to get the URL which should be opened.
Overrides:
getURL in class WebFactory

nextObj

public java.lang.Object nextObj()
                         throws java.lang.Exception
Description copied from class: Factory
The abstract method to consume input from dstream and create the next object. This is specific to the particular type of input and must be implemented by the subclass.
Overrides:
nextObj in class Factory

makeStar

protected static HIPstar makeStar(java.lang.String str)
                           throws java.lang.Exception
Parse a line for data

getCmd

public java.lang.String getCmd()
Description copied from class: WebFactory
The id and different parameters to the command will be differnt for each system. This abstarct method will be called to get the Command which should be executed.
Overrides:
getCmd in class WebFactory