net.aerith.misao.util
Class MpcFormatRecord

java.lang.Object
  |
  +--net.aerith.misao.util.MpcFormatRecord

public class MpcFormatRecord
extends java.lang.Object

The MpcFormatRecord represents an astrometric data record in the MPC format.


Field Summary
protected  int accuracy
          The magnitude accuracy.
static int ACCURACY_100TH
          The magnitude accuracy number which indicates to output in 0.01 mag order.
static int ACCURACY_10TH
          The magnitude accuracy number which indicates to output in 0.1 mag order.
static int ACCURACY_EMPTY
          The magnitude accuracy number which indicates not to output the magnitude.
protected  int band
          The magnitude band.
static int BAND_B
          The magnitude band number which indicates a B-band observation.
static int BAND_EMPTY
          The magnitude band number which indicates not to output the band.
static int BAND_I
          The magnitude band number which indicates a I-band observation.
static int BAND_NUCLEAR
          The magnitude band number which indicates a nuclear magnitude.
static int BAND_R
          The magnitude band number which indicates a R-band observation.
static int BAND_TOTAL
          The magnitude band number which indicates a total magnitude
static int BAND_V
          The magnitude band number which indicates a V-band observation.
protected  java.lang.String code
          The observatory code.
protected  Designation designation
          The designation.
protected  XmlPositionRecord record
          The XML element of the position data.
protected  int type
          The observation type.
static int TYPE_CCD
          The observation type number which indicates a CCD observation.
static int TYPE_PHOTOGRAPHIC
          The observation type number which indicates a photographic observation.
 
Constructor Summary
MpcFormatRecord(XmlPositionRecord record)
          Constructs a MpcFormatRecord of the specified position data.
 
Method Summary
 java.lang.String getOutputString()
          Returns a string representation of the state of this object in the proper format.
 java.lang.String getPackedDesignation()
          Gets the packed designation.
 void setDesignation(Designation designation)
          Sets the designation.
 void setMagnitudeAccuracy(int accuracy)
          Sets the magnitude accuracy.
 void setMagnitudeBand(int band)
          Sets the magnitude band.
 void setObservationType(int type)
          Sets the observation type.
 void setObservatoryCode(java.lang.String code)
          Sets the observatory code.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

designation

protected Designation designation
The designation.

record

protected XmlPositionRecord record
The XML element of the position data.

type

protected int type
The observation type.

accuracy

protected int accuracy
The magnitude accuracy.

band

protected int band
The magnitude band.

code

protected java.lang.String code
The observatory code.

TYPE_PHOTOGRAPHIC

public static final int TYPE_PHOTOGRAPHIC
The observation type number which indicates a photographic observation.

TYPE_CCD

public static final int TYPE_CCD
The observation type number which indicates a CCD observation.

ACCURACY_EMPTY

public static final int ACCURACY_EMPTY
The magnitude accuracy number which indicates not to output the magnitude.

ACCURACY_10TH

public static final int ACCURACY_10TH
The magnitude accuracy number which indicates to output in 0.1 mag order.

ACCURACY_100TH

public static final int ACCURACY_100TH
The magnitude accuracy number which indicates to output in 0.01 mag order.

BAND_EMPTY

public static final int BAND_EMPTY
The magnitude band number which indicates not to output the band.

BAND_B

public static final int BAND_B
The magnitude band number which indicates a B-band observation.

BAND_V

public static final int BAND_V
The magnitude band number which indicates a V-band observation.

BAND_R

public static final int BAND_R
The magnitude band number which indicates a R-band observation.

BAND_I

public static final int BAND_I
The magnitude band number which indicates a I-band observation.

BAND_TOTAL

public static final int BAND_TOTAL
The magnitude band number which indicates a total magnitude

BAND_NUCLEAR

public static final int BAND_NUCLEAR
The magnitude band number which indicates a nuclear magnitude.
Constructor Detail

MpcFormatRecord

public MpcFormatRecord(XmlPositionRecord record)
Constructs a MpcFormatRecord of the specified position data.
Parameters:
record - the XML element of the position data.
Method Detail

setDesignation

public void setDesignation(Designation designation)
Sets the designation.
Parameters:
designation - the designation.

setObservationType

public void setObservationType(int type)
Sets the observation type.
Parameters:
type - the observation type number.

setMagnitudeAccuracy

public void setMagnitudeAccuracy(int accuracy)
Sets the magnitude accuracy.
Parameters:
accuracy - the magnitude accuracy number.

setMagnitudeBand

public void setMagnitudeBand(int band)
Sets the magnitude band.
Parameters:
band - the magnitude band number.

setObservatoryCode

public void setObservatoryCode(java.lang.String code)
Sets the observatory code.
Parameters:
code - the observatory code.

getPackedDesignation

public java.lang.String getPackedDesignation()
Gets the packed designation.
Returns:
the packed designation.

getOutputString

public java.lang.String getOutputString()
Returns a string representation of the state of this object in the proper format.