net.aerith.misao.util
Class VsnetRecord

java.lang.Object
  |
  +--net.aerith.misao.util.VsnetRecord
Direct Known Subclasses:
VsoljRecord

public class VsnetRecord
extends java.lang.Object

The VsnetRecord represents a magnitude data record in the VSNET 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.
protected  int format
          The format number.
static int FORMAT_EXTENDED
          The format number which indicates the extended format.
static int FORMAT_EXTENDED_INSTRUMENTS
          The format number which indicates the extended format, with the instruments.
static int FORMAT_ORIGINAL
          The format number which indicates the original format.
protected  java.lang.String name
          The name of the star.
protected  java.lang.String observer_code
          The observer's code.
protected  XmlMagRecord record
          The XML element of the magnitude data.
 
Constructor Summary
VsnetRecord(java.lang.String name, XmlMagRecord record)
          Constructs a VsnetRecord of the specified star and the magnitude data.
 
Method Summary
 java.lang.String getCatalog()
          Gets the catalog.
 java.lang.String getChip()
          Gets the chip.
 java.lang.String getDate()
          Gets the date string.
 java.lang.String getImageObserver()
          Gets the image observer.
 java.lang.String getInstruments()
          Gets the instruments.
 java.lang.String getMag()
          Gets the magnitude.
 java.lang.String getName()
          Gets the star name.
 java.lang.String getObserverCode()
          Gets the observer's code.
 java.lang.String getOutputString()
          Returns a string representation of the state of this object in the specified format.
 void setAccuracy(int accuracy)
          Sets the magnitude accuracy.
 void setFormat(int format)
          Sets the format.
 void setObserverCode(java.lang.String observer)
          Sets the observer's code.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

name

protected java.lang.String name
The name of the star.

record

protected XmlMagRecord record
The XML element of the magnitude data.

format

protected int format
The format number.

accuracy

protected int accuracy
The magnitude accuracy.

observer_code

protected java.lang.String observer_code
The observer's code.

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.

FORMAT_ORIGINAL

public static final int FORMAT_ORIGINAL
The format number which indicates the original format.

FORMAT_EXTENDED

public static final int FORMAT_EXTENDED
The format number which indicates the extended format.

FORMAT_EXTENDED_INSTRUMENTS

public static final int FORMAT_EXTENDED_INSTRUMENTS
The format number which indicates the extended format, with the instruments.
Constructor Detail

VsnetRecord

public VsnetRecord(java.lang.String name,
                   XmlMagRecord record)
Constructs a VsnetRecord of the specified star and the magnitude data.
Parameters:
name - the name of the star.
record - the XML element of the magnitude data.
Method Detail

setFormat

public void setFormat(int format)
Sets the format.
Parameters:
format - the format number.

setAccuracy

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

getName

public java.lang.String getName()
Gets the star name.
Returns:
the star name.

getDate

public java.lang.String getDate()
Gets the date string.
Returns:
the date string.

getMag

public java.lang.String getMag()
Gets the magnitude.
Returns:
the magnitude.

setObserverCode

public void setObserverCode(java.lang.String observer)
Sets the observer's code.
Parameters:
observer - the observer's code.

getObserverCode

public java.lang.String getObserverCode()
Gets the observer's code.
Returns:
the observer's code.

getChip

public java.lang.String getChip()
Gets the chip.
Returns:
the chip.

getCatalog

public java.lang.String getCatalog()
Gets the catalog.
Returns:
the catalog.

getImageObserver

public java.lang.String getImageObserver()
Gets the image observer.
Returns:
the image observer.

getInstruments

public java.lang.String getInstruments()
Gets the instruments.
Returns:
the instruments.

getOutputString

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