net.aerith.misao.catalog.star
Class MpcFormatStar

java.lang.Object
  |
  +--net.aerith.misao.util.Position
        |
        +--net.aerith.misao.util.star.StarPosition
              |
              +--net.aerith.misao.util.star.Star
                    |
                    +--net.aerith.misao.util.star.CatalogStar
                          |
                          +--net.aerith.misao.catalog.star.MpcFormatStar

public class MpcFormatStar
extends CatalogStar

The MpcFormatStar represents a record of astrometric observation in the MPC format.


Field Summary
protected  java.lang.String record
          The record.
 
Fields inherited from class net.aerith.misao.util.star.CatalogStar
detailed_output
 
Fields inherited from class net.aerith.misao.util.star.Star
color, container_pair, coor
 
Fields inherited from class net.aerith.misao.util.star.StarPosition
mag
 
Fields inherited from class net.aerith.misao.util.Position
x, y
 
Constructor Summary
MpcFormatStar()
          Constructs an empty MpcFormatStar.
MpcFormatStar(java.lang.String record)
          Constructs an MpcFormatStar with data read from the query result.
 
Method Summary
 java.lang.String getCatalogCategory()
          Gets the category of the catalog.
 java.lang.String getCatalogName()
          Gets the name of the catalog.
 JulianDay getDate()
          Returns the date if the R.A.
 PlotProperty getDefaultProperty()
          Gets the default property to plot stars.
 KeyAndValue[] getKeyAndValues()
          Gets an array of keys and values to output.
 java.lang.String getName()
          Gets the name of this star.
 void setKeyAndValue(KeyAndValue key_and_value)
          Sets the value of the specified key.
 void setName(java.lang.String name)
          Sets the name of this star.
 
Methods inherited from class net.aerith.misao.util.star.CatalogStar
getAvailableMagnitudeSystems, getBMagnitude, getBVDifference, getCatalogAcronym, getCatalogCode, getCatalogFolderCode, getCatalogNamesWithMagnitudeSystem, getCatalogNameWithMagnitudeSystem, getCoorAccuracy, getCoorString, getCoorStringWithoutUnit, getHelpMessage, getHierarchicalFolders, getIcMagnitude, getKeyAndValuesForPhotometry, getMagnitude, getMagnitude, getMagnitudeString, getMagnitudeSystem, getMaximumPositionErrorInArcsec, getPhotometryHelpMessage, getPositionErrorInArcsec, getRcMagnitude, getStarFolder, getUMagnitude, getVMagnitude, isDescriptionEdittable, reduceOutput, setCoorAccuracy, supportsAstrometry, supportsMagnitude, supportsPhotometry
 
Methods inherited from class net.aerith.misao.util.star.Star
equals, getColor, getCoor, getDecl, getItemDelimiter, getKeyAndValueDelimiter, getOutputString, getOutputStringsWithXY, getOutputStringWithoutName, getOutputStringWithXY, getPair, getPositionString, getPxfString, getPxfStringsWithXY, getPxfStringWithXY, getRA, getVsnetName, mapCoordinatesToXY, mapCoordinatesToXY, mapXYToCoordinates, mapXYToCoordinates, setColor, setCoor, setPair
 
Methods inherited from class net.aerith.misao.util.star.StarPosition
getMag, getOutputStrings, paramString, setMag, toString
 
Methods inherited from class net.aerith.misao.util.Position
add, getDistanceFrom, getPositionAngleTo, getX, getY, rescale, setPosition, setX, setY
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

record

protected java.lang.String record
The record.
Constructor Detail

MpcFormatStar

public MpcFormatStar()
Constructs an empty MpcFormatStar. It is used in StarClass#newInstance to review the XML data.

MpcFormatStar

public MpcFormatStar(java.lang.String record)
Constructs an MpcFormatStar with data read from the query result.
Parameters:
record - the record.
Method Detail

getName

public java.lang.String getName()
Gets the name of this star.
Overrides:
getName in class Star
Returns:
the name of this star.

setName

public void setName(java.lang.String name)
Sets the name of this star.
Overrides:
setName in class CatalogStar
Parameters:
name - the name to set.

getCatalogName

public java.lang.String getCatalogName()
Gets the name of the catalog. It must be unique among all subclasses.
Overrides:
getCatalogName in class CatalogStar
Returns:
the name of the catalog.

getCatalogCategory

public java.lang.String getCatalogCategory()
Gets the category of the catalog.
Overrides:
getCatalogCategory in class CatalogStar
Returns:
the category of the catalog.

getDate

public JulianDay getDate()
Returns the date if the R.A. and Decl. is date dependent. For example, in the case of astrometric observations in the MPC format. In general, it returns null.
Overrides:
getDate in class CatalogStar
Returns:
the date.

getDefaultProperty

public PlotProperty getDefaultProperty()
Gets the default property to plot stars.
Overrides:
getDefaultProperty in class CatalogStar
Returns:
the default property to plot stars.

getKeyAndValues

public KeyAndValue[] getKeyAndValues()
Gets an array of keys and values to output.
Overrides:
getKeyAndValues in class Star
Returns:
an array of keys and values to output.

setKeyAndValue

public void setKeyAndValue(KeyAndValue key_and_value)
Sets the value of the specified key.
Overrides:
setKeyAndValue in class Star
Parameters:
key_and_value - the key and value to set.