net.aerith.misao.util
Class Designation

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

public class Designation
extends java.lang.Object

The Designation represents a designation of an asteroid, comet or satellite.


Field Summary
protected  java.lang.String fragment
          The fragment.
protected  java.lang.String month_code
          The month code.
protected  int number
          The permanent number.
protected  int orbit
          The orbit type.
static int ORBIT_ASTEROID
          The orbit type number which indicates an asteroid.
static int ORBIT_COMET
          The orbit type number which indicates a comet.
static int ORBIT_LOST
          The orbit type number which indicates a lost comet.
static int ORBIT_PERIODIC
          The orbit type number which indicates a periodic comet.
static int ORBIT_UNCERTAIN
          The orbit type number which indicates a uncertain comet.
protected  int planet
          The planet.
static int PLANET_EARTH
          The planet number which indicates Earth.
static int PLANET_JUPITER
          The planet number which indicates Jupiter.
static int PLANET_MARS
          The planet number which indicates Mars.
static int PLANET_MERCURY
          The planet number which indicates Mercury.
static int PLANET_NEPTUNE
          The planet number which indicates Neptune.
static int PLANET_PLUTO
          The planet number which indicates Pluto.
static int PLANET_SATURN
          The planet number which indicates Saturn.
static int PLANET_URANUS
          The planet number which indicates Uranus.
static int PLANET_VENUS
          The planet number which indicates Venus.
protected  int sequential
          The sequential number in month.
protected  java.lang.String sub_code
          The sub code in month.
protected  int survey
          The survey type.
static int SURVEY_PL
          The survey type number which indicates the Palomar-Leiden Survey (1960).
static int SURVEY_T1
          The survey type number which indicates the First Trojan Survey (1971).
static int SURVEY_T2
          The survey type number which indicates the Second Trojan Survey (1973).
static int SURVEY_T3
          The survey type number which indicates the Third Trojan Survey (1977).
protected  int type
          The designation type.
static int TYPE_ASTEROID_NUMBERED
          The designation type number which indicates a numbered asteroid.
static int TYPE_ASTEROID_PROVISIONAL
          The designation type number which indicates a provisional asteroid.
static int TYPE_ASTEROID_SURVEY
          The designation type number which indicates an asteroid of a special survey.
static int TYPE_COMET_NUMBERED
          The designation type number which indicates a numbered comet.
static int TYPE_COMET_PROVISIONAL
          The designation type number which indicates a provisional comet.
static int TYPE_SATELLITE_NUMBERED
          The designation type number which indicates a numbered satellite.
static int TYPE_SATELLITE_PROVISIONAL
          The designation type number which indicates a provisional satellite.
protected  int year
          The year of provisional designation.
 
Constructor Summary
Designation(int type)
          Constructs a Designation of the specified type.
 
Method Summary
 java.lang.String getFragment()
          Gets the fragment.
 java.lang.String getMonthCode()
          Gets the month code.
 int getNumber()
          Gets the permanent number.
 int getOrbit()
          Gets the orbit type.
 java.lang.String getOutputString()
          Returns a string representation of this designation.
 int getPlanet()
          Gets the planet.
 int getSequentialNumber()
          Gets the sequential number in month.
 java.lang.String getSubCode()
          Gets the sub code in month.
 int getSurvey()
          Gets the survey type.
 int getType()
          Gets the designation type.
 int getYear()
          Gets the year of provisional designation.
 void setFragment(java.lang.String fragment)
          Sets the fragment.
 void setMonthCode(java.lang.String month_code)
          Sets the month code.
 void setNumber(int number)
          Sets the permanent number.
 void setOrbit(int orbit)
          Sets the orbit type.
 void setPlanet(int planet)
          Sets the planet.
 void setSequentialNumber(int sequential)
          Sets the sequential number in month.
 void setSubCode(java.lang.String sub_code)
          Sets the sub code in month.
 void setSurvey(int survey)
          Sets the survey type.
 void setYear(int year)
          Sets the year of provisional designation.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

type

protected int type
The designation type.

orbit

protected int orbit
The orbit type.

number

protected int number
The permanent number.

year

protected int year
The year of provisional designation.

month_code

protected java.lang.String month_code
The month code.

sub_code

protected java.lang.String sub_code
The sub code in month.

sequential

protected int sequential
The sequential number in month.

survey

protected int survey
The survey type.

fragment

protected java.lang.String fragment
The fragment.

planet

protected int planet
The planet.

TYPE_ASTEROID_NUMBERED

public static final int TYPE_ASTEROID_NUMBERED
The designation type number which indicates a numbered asteroid.

TYPE_ASTEROID_PROVISIONAL

public static final int TYPE_ASTEROID_PROVISIONAL
The designation type number which indicates a provisional asteroid.

TYPE_ASTEROID_SURVEY

public static final int TYPE_ASTEROID_SURVEY
The designation type number which indicates an asteroid of a special survey.

TYPE_COMET_NUMBERED

public static final int TYPE_COMET_NUMBERED
The designation type number which indicates a numbered comet.

TYPE_COMET_PROVISIONAL

public static final int TYPE_COMET_PROVISIONAL
The designation type number which indicates a provisional comet.

TYPE_SATELLITE_NUMBERED

public static final int TYPE_SATELLITE_NUMBERED
The designation type number which indicates a numbered satellite.

TYPE_SATELLITE_PROVISIONAL

public static final int TYPE_SATELLITE_PROVISIONAL
The designation type number which indicates a provisional satellite.

ORBIT_ASTEROID

public static final int ORBIT_ASTEROID
The orbit type number which indicates an asteroid.

ORBIT_COMET

public static final int ORBIT_COMET
The orbit type number which indicates a comet.

ORBIT_PERIODIC

public static final int ORBIT_PERIODIC
The orbit type number which indicates a periodic comet.

ORBIT_LOST

public static final int ORBIT_LOST
The orbit type number which indicates a lost comet.

ORBIT_UNCERTAIN

public static final int ORBIT_UNCERTAIN
The orbit type number which indicates a uncertain comet.

SURVEY_PL

public static final int SURVEY_PL
The survey type number which indicates the Palomar-Leiden Survey (1960).

SURVEY_T1

public static final int SURVEY_T1
The survey type number which indicates the First Trojan Survey (1971).

SURVEY_T2

public static final int SURVEY_T2
The survey type number which indicates the Second Trojan Survey (1973).

SURVEY_T3

public static final int SURVEY_T3
The survey type number which indicates the Third Trojan Survey (1977).

PLANET_MERCURY

public static final int PLANET_MERCURY
The planet number which indicates Mercury.

PLANET_VENUS

public static final int PLANET_VENUS
The planet number which indicates Venus.

PLANET_EARTH

public static final int PLANET_EARTH
The planet number which indicates Earth.

PLANET_MARS

public static final int PLANET_MARS
The planet number which indicates Mars.

PLANET_JUPITER

public static final int PLANET_JUPITER
The planet number which indicates Jupiter.

PLANET_SATURN

public static final int PLANET_SATURN
The planet number which indicates Saturn.

PLANET_URANUS

public static final int PLANET_URANUS
The planet number which indicates Uranus.

PLANET_NEPTUNE

public static final int PLANET_NEPTUNE
The planet number which indicates Neptune.

PLANET_PLUTO

public static final int PLANET_PLUTO
The planet number which indicates Pluto.
Constructor Detail

Designation

public Designation(int type)
Constructs a Designation of the specified type.
Parameters:
type - the designation type.
Method Detail

getType

public int getType()
Gets the designation type.
Returns:
the designation type.

setOrbit

public void setOrbit(int orbit)
Sets the orbit type.
Parameters:
orbit - the orbit type number.

getOrbit

public int getOrbit()
Gets the orbit type.
Returns:
the orbit type number.

setNumber

public void setNumber(int number)
Sets the permanent number.
Parameters:
number - the permanent number.

getNumber

public int getNumber()
Gets the permanent number.
Returns:
the permanent number.

setYear

public void setYear(int year)
Sets the year of provisional designation.
Parameters:
year - the year.

getYear

public int getYear()
Gets the year of provisional designation.
Returns:
the year.

setMonthCode

public void setMonthCode(java.lang.String month_code)
Sets the month code.
Parameters:
month_code - the month code.

getMonthCode

public java.lang.String getMonthCode()
Gets the month code.
Returns:
the month code.

setSubCode

public void setSubCode(java.lang.String sub_code)
Sets the sub code in month.
Parameters:
sub_code - the sub code in month.

getSubCode

public java.lang.String getSubCode()
Gets the sub code in month.
Returns:
the sub code in month.

setSequentialNumber

public void setSequentialNumber(int sequential)
Sets the sequential number in month.
Parameters:
sequential - the sequential number in month.

getSequentialNumber

public int getSequentialNumber()
Gets the sequential number in month.
Returns:
the sequential number in month.

setSurvey

public void setSurvey(int survey)
Sets the survey type.
Parameters:
survey - the survey type number.

getSurvey

public int getSurvey()
Gets the survey type.
Returns:
the survey type number.

setFragment

public void setFragment(java.lang.String fragment)
Sets the fragment.
Parameters:
fragment - the fragment.

getFragment

public java.lang.String getFragment()
Gets the fragment.
Returns:
the fragment.

setPlanet

public void setPlanet(int planet)
Sets the planet.
Parameters:
planet - the planet number.

getPlanet

public int getPlanet()
Gets the planet.
Returns:
the planet number.

getOutputString

public java.lang.String getOutputString()
Returns a string representation of this designation.