net.aerith.misao.catalog.io
Class Ngc2000Reader
java.lang.Object
|
+--net.aerith.misao.catalog.io.CatalogReader
|
+--net.aerith.misao.catalog.io.FileReader
|
+--net.aerith.misao.catalog.io.Ngc2000Reader
- public class Ngc2000Reader
- extends FileReader
The Ngc2000Reader
is a class to read the NGC 2000.0
catalog.
The (x,y) position is also set properly so that (0,0) represents
the specified R.A. and Decl. to open method and (1,1)
represents the position 1 deg to the west and 1 deg to the north.
Constructor Summary |
Ngc2000Reader()
Constructs an empty Ngc2000Reader . |
Ngc2000Reader(java.net.URL url)
Constructs a Ngc2000Reader with URL of the
catalog file. |
Methods inherited from class net.aerith.misao.catalog.io.CatalogReader |
addURL,
getDateLimit,
getDateLimitMessage,
getFovLimit,
getFovLimitMessage,
hasDateLimit,
hasFovLimit,
isDateDependent,
isInDirectory,
open,
read,
setDate,
setDefaultURL,
setLimitingMagnitude,
supportsExamination |
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
Ngc2000Reader
public Ngc2000Reader()
- Constructs an empty
Ngc2000Reader
.
Ngc2000Reader
public Ngc2000Reader(java.net.URL url)
- Constructs a
Ngc2000Reader
with URL of the
catalog file.
- Parameters:
url
- the URL of the catalog file.
getName
public java.lang.String getName()
- Gets the catalog name. It must be unique among all subclasses.
- Overrides:
- getName in class FileReader
- Returns:
- the catalog name.
getMaximumPositionErrorInArcsec
public double getMaximumPositionErrorInArcsec()
- Gets the maximum error of position in arcsec. It is the search
area size to identify with other stars.
- Overrides:
- getMaximumPositionErrorInArcsec in class CatalogReader
- Returns:
- the maximum error of position in arcsec.
createStar
public CatalogStar createStar(java.lang.String record)
- Creates a
CatalogStar
object from the specified
one line record in the file. If some more records are required
to create a star object, it returns null. This method must be
overrided in the subclasses.
- Overrides:
- createStar in class FileReader
- Parameters:
record
- the one line record in the file.- Returns:
- the star object.
getHelpMessage
public java.lang.String getHelpMessage()
- Gets the help message.
- Overrides:
- getHelpMessage in class CatalogReader
- Returns:
- the help message.