net.aerith.misao.xml
Class Variability

java.lang.Object
  |
  +--net.aerith.misao.xml.Variability

public class Variability
extends java.lang.Object

The Variability represents a set of a catalog star object, and the XML magnitude elements of the maximum and minimum.


Field Summary
protected  XmlMagRecord brightest_mag
          The brightest magnitude.
protected  XmlMagRecord faintest_mag
          The faintest magnitude.
protected  CatalogStar identified_star
          The typical identified star.
protected  XmlMagRecord[] records
          The all magnitude records.
protected  CatalogStar star
          The star.
 
Constructor Summary
Variability(CatalogStar star, XmlMagRecord[] records)
          Constructs a Variability.
Variability(CatalogStar star, XmlMagRecord brightest_mag, XmlMagRecord faintest_mag, XmlMagRecord[] records)
          Constructs a Variability.
 
Method Summary
 void addMagnitudeRecord(XmlMagRecord record)
          Adds a magnitude records.
 int getArcInDays()
          Gets the arc in days.
 XmlMagRecord getBrightestMagnitude()
          Gets the brightest magnitude.
 XmlMagRecord getFaintestMagnitude()
          Gets the faintest magnitude.
 java.lang.String getFirstDate()
          Gets the first date.
 CatalogStar getIdentifiedStar()
          Gets the typical identified star object.
 java.lang.String getLastDate()
          Gets the last date.
 double getMagnitudeRange()
          Gets the magnitude range.
 XmlMagRecord[] getMagnitudeRecords()
          Gets the magnitude records.
 int getObservations()
          Gets the number of observations.
 CatalogStar getStar()
          Gets the star object.
 void setIdentifiedStar(CatalogStar star)
          Sets the typical identified star object.
 void setStar(CatalogStar star)
          Sets the star object.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

star

protected CatalogStar star
The star.

identified_star

protected CatalogStar identified_star
The typical identified star.

brightest_mag

protected XmlMagRecord brightest_mag
The brightest magnitude.

faintest_mag

protected XmlMagRecord faintest_mag
The faintest magnitude.

records

protected XmlMagRecord[] records
The all magnitude records.
Constructor Detail

Variability

public Variability(CatalogStar star,
                   XmlMagRecord[] records)
Constructs a Variability.
Parameters:
star - the star object.
records - the magnitude records.

Variability

public Variability(CatalogStar star,
                   XmlMagRecord brightest_mag,
                   XmlMagRecord faintest_mag,
                   XmlMagRecord[] records)
Constructs a Variability.
Parameters:
star - the star object.
brightest_mag - the brightest magnitude.
faintest_mag - the faintest magnitude.
records - the all magnitude records.
Method Detail

getStar

public CatalogStar getStar()
Gets the star object.
Returns:
the star object.

setStar

public void setStar(CatalogStar star)
Sets the star object.
Parameters:
star - the star object.

getIdentifiedStar

public CatalogStar getIdentifiedStar()
Gets the typical identified star object.
Returns:
the typical identified star object.

setIdentifiedStar

public void setIdentifiedStar(CatalogStar star)
Sets the typical identified star object.
Parameters:
star - the typical identified star object.

getBrightestMagnitude

public XmlMagRecord getBrightestMagnitude()
Gets the brightest magnitude.
Returns:
the brightest magnitude.

getFaintestMagnitude

public XmlMagRecord getFaintestMagnitude()
Gets the faintest magnitude.
Returns:
the faintest magnitude.

getMagnitudeRange

public double getMagnitudeRange()
Gets the magnitude range.
Returns:
the magnitude range.

addMagnitudeRecord

public void addMagnitudeRecord(XmlMagRecord record)
Adds a magnitude records.
Parameters:
record - a magnitude records.

getMagnitudeRecords

public XmlMagRecord[] getMagnitudeRecords()
Gets the magnitude records.
Returns:
the magnitude records.

getObservations

public int getObservations()
Gets the number of observations.
Returns:
the number of observations.

getFirstDate

public java.lang.String getFirstDate()
Gets the first date.
Returns:
the first date.

getLastDate

public java.lang.String getLastDate()
Gets the last date.
Returns:
the last date.

getArcInDays

public int getArcInDays()
Gets the arc in days.
Returns:
the arc in days.