mysql
Class TargetSql.StarSql

java.lang.Object
  extended by astro.StarDescription
      extended by mysql.TargetSql.StarSql
All Implemented Interfaces:
Serializable, Cloneable
Enclosing class:
TargetSql

public static class TargetSql.StarSql
extends StarDescription

A class that extends a StarDescription to host additional info relevant for stellar activity.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class astro.StarDescription
StarDescription.StarComparator<T extends StarDescription>
 
Field Summary
static String COMMON
          ID for common name.
static String HISTORY
          ID for sb integer.
static String LOGG
          ID for sb integer.
static String LUMCLASS
          ID for spectral type, luminosity (1-5).
static String MASS
          ID for sb integer.
static String METAL
          ID for sb integer.
static String PARALLAX
          ID for parallax in mas.
static String PERIOD
          ID for period in days.
static String REDCOL
          ID for V-R.
static String RV
          ID for heliocentric velocity.
static String SB
          ID for sb integer.
static String SPCLASS
          ID for spectral type (O=0, B=10, etc.).
static String SPECTRUM
          ID for spectral type.
static String TEFF
          ID for sb integer.
static String TYPE
          ID for object type.
static String VSINI
          ID for rotational velocity.
 
Fields inherited from class astro.StarDescription
COLOR, DEC, DEFCOLOR, DEFEPOCH, DEFEQUINOX, DEFID, DEFPROPDEC, DEFPROPRA, EPOCH, EQUINOX, ID, MAG, NAME, PROPDEC, PROPRA, RA, SOL, UNKNOWN
 
Constructor Summary
TargetSql.StarSql(String name, String common)
          Constructs a new star from its name and the common name.
 
Method Summary
 Object setBinarity(int spclass)
          Sets the multiplicity.
 Object setHistory(String catalogs)
          Sets the history.
 Object setLogG(float g)
          Sets the log g.
 Object setLuminosityClass(int spclass)
          Sets the luminosity class as an integer.
 Object setMass(float m)
          Sets the mass.
 Object setMetal(float z)
          Sets the metal content.
 Object setParallax(float rv)
          Sets the parallax as a double.
 Object setPeriod(float rv)
          Sets the period as a double.
 Object setRadialVelocity(float rv)
          Sets the heliocentric velocity as a double.
 Object setRedColor(float vr)
          Sets a red color index of the star, normally a V-R color.
 Object setRotationalVelocity(float rv)
          Sets the rotational velocity as a double.
 Object setSpectralClass(int spclass)
          Sets the spectral class as an integer.
 Object setSpectrum(String spec)
          Sets the spectrum as a string, like B1IV-V
 Object setTeff(float t)
          Sets the effective Temperature.
 Object setType(String spec)
          Sets the simbad object type.
 String toString()
          Simple conversion.
 
Methods inherited from class astro.StarDescription
equals, exportIdMap, exportNameMap, fillMissing, fillMissing, get, getColor, getDec, getEpoch, getEquinox, getID, getMag, getName, getPropDec, getProperty, getPropRa, getRa, getSeparation, getSeparation, getSeparation, getSeparation, isFullyValid, isMarginallyValid, isSexagesimal, isValid, isVeryValid, matches, parseSexagesimal, set, setColor, setDec, setEpoch, setEquinox, setID, setMag, setName, setPropDec, setProperty, setPropRa, setRa
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

COMMON

public static String COMMON
ID for common name.


SPECTRUM

public static String SPECTRUM
ID for spectral type.


SPCLASS

public static String SPCLASS
ID for spectral type (O=0, B=10, etc.).


LUMCLASS

public static String LUMCLASS
ID for spectral type, luminosity (1-5).


RV

public static String RV
ID for heliocentric velocity.


VSINI

public static String VSINI
ID for rotational velocity.


REDCOL

public static String REDCOL
ID for V-R.


PERIOD

public static String PERIOD
ID for period in days.


PARALLAX

public static String PARALLAX
ID for parallax in mas.


TYPE

public static String TYPE
ID for object type.


SB

public static String SB
ID for sb integer.


METAL

public static String METAL
ID for sb integer.


MASS

public static String MASS
ID for sb integer.


LOGG

public static String LOGG
ID for sb integer.


TEFF

public static String TEFF
ID for sb integer.


HISTORY

public static String HISTORY
ID for sb integer.

Constructor Detail

TargetSql.StarSql

public TargetSql.StarSql(String name,
                         String common)
Constructs a new star from its name and the common name.

Method Detail

setSpectrum

public Object setSpectrum(String spec)
Sets the spectrum as a string, like B1IV-V


setSpectralClass

public Object setSpectralClass(int spclass)
Sets the spectral class as an integer.


setLuminosityClass

public Object setLuminosityClass(int spclass)
Sets the luminosity class as an integer.


setRadialVelocity

public Object setRadialVelocity(float rv)
Sets the heliocentric velocity as a double.


setRotationalVelocity

public Object setRotationalVelocity(float rv)
Sets the rotational velocity as a double.


setRedColor

public Object setRedColor(float vr)
Sets a red color index of the star, normally a V-R color.


setPeriod

public Object setPeriod(float rv)
Sets the period as a double.


setParallax

public Object setParallax(float rv)
Sets the parallax as a double.


setType

public Object setType(String spec)
Sets the simbad object type.


setBinarity

public Object setBinarity(int spclass)
Sets the multiplicity.


setMetal

public Object setMetal(float z)
Sets the metal content.


setMass

public Object setMass(float m)
Sets the mass.


setLogG

public Object setLogG(float g)
Sets the log g.


setTeff

public Object setTeff(float t)
Sets the effective Temperature.


setHistory

public Object setHistory(String catalogs)
Sets the history.


toString

public String toString()
Simple conversion.

Overrides:
toString in class StarDescription