net.aerith.misao.catalog.star
Class SupernovaStar

java.lang.Object
  |
  +--net.aerith.misao.util.Position
        |
        +--net.aerith.misao.util.star.StarPosition
              |
              +--net.aerith.misao.util.star.Star
                    |
                    +--net.aerith.misao.util.star.CatalogStar
                          |
                          +--net.aerith.misao.catalog.star.DefaultStar
                                |
                                +--net.aerith.misao.catalog.star.SupernovaStar

public class SupernovaStar
extends DefaultStar

The SupernovaStar represents a star data in the List of Supernovae.


Field Summary
protected  java.lang.String number
          The sequential number in the year.
protected  int year
          The discovery year.
 
Fields inherited from class net.aerith.misao.catalog.star.DefaultStar
coor_accuracy, list, name
 
Fields inherited from class net.aerith.misao.util.star.CatalogStar
detailed_output
 
Fields inherited from class net.aerith.misao.util.star.Star
color, container_pair, coor
 
Fields inherited from class net.aerith.misao.util.star.StarPosition
mag
 
Fields inherited from class net.aerith.misao.util.Position
x, y
 
Constructor Summary
SupernovaStar()
          Constructs an empty SupernovaStar.
SupernovaStar(int year, java.lang.String number, java.lang.String coor_string)
          Constructs an SupernovaStar with data read from the catalog file.
 
Method Summary
 java.lang.String getCatalogAcronym()
          Gets the acronym of the catalog.
protected  int getCatalogCategoryNumber()
          Gets the catalog category.
 java.lang.String getCatalogCode()
          Gets the code of the catalog.
 java.lang.String getCatalogName()
          Gets the name of the catalog.
 java.util.Vector getHierarchicalFolders()
          Gets the list of the hierarchical folders.
 java.lang.String getNamePrefix()
          Gets the prefix of the name.
 java.lang.String getVsnetName()
          Gets the name of this star in a format for the VSNET (Variable Star Network).
 void setDiscoverers(java.lang.String discoverers)
          Sets the discoverers.
 void setDiscoveryDate(java.lang.String date)
          Sets the discovery date.
 void setDiscoveryMagnitude(java.lang.String mag)
          Sets the magnitude at the discovery.
 void setHostGalaxy(java.lang.String host)
          Sets the host galaxy.
 void setName(java.lang.String name)
          Sets the name of this star.
 void setReference(java.lang.String reference)
          Sets the reference.
 void setType(java.lang.String type)
          Sets the type.
 
Methods inherited from class net.aerith.misao.catalog.star.DefaultStar
getCatalogCategory, getCoorAccuracy, getDefaultProperty, getKeyAndValues, getMaximumPositionErrorInArcsec, getName, getPositionErrorInArcsec, getStarFolder, setCoorAccuracy, setData, setKeyAndValue
 
Methods inherited from class net.aerith.misao.util.star.CatalogStar
getAvailableMagnitudeSystems, getBMagnitude, getBVDifference, getCatalogFolderCode, getCatalogNamesWithMagnitudeSystem, getCatalogNameWithMagnitudeSystem, getCoorString, getCoorStringWithoutUnit, getDate, getHelpMessage, getIcMagnitude, getKeyAndValuesForPhotometry, getMagnitude, getMagnitude, getMagnitudeString, getMagnitudeSystem, getPhotometryHelpMessage, getRcMagnitude, getUMagnitude, getVMagnitude, isDescriptionEdittable, reduceOutput, supportsAstrometry, supportsMagnitude, supportsPhotometry
 
Methods inherited from class net.aerith.misao.util.star.Star
equals, getColor, getCoor, getDecl, getItemDelimiter, getKeyAndValueDelimiter, getOutputString, getOutputStringsWithXY, getOutputStringWithoutName, getOutputStringWithXY, getPair, getPositionString, getPxfString, getPxfStringsWithXY, getPxfStringWithXY, getRA, mapCoordinatesToXY, mapCoordinatesToXY, mapXYToCoordinates, mapXYToCoordinates, setColor, setCoor, setPair
 
Methods inherited from class net.aerith.misao.util.star.StarPosition
getMag, getOutputStrings, paramString, setMag, toString
 
Methods inherited from class net.aerith.misao.util.Position
add, getDistanceFrom, getPositionAngleTo, getX, getY, rescale, setPosition, setX, setY
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

year

protected int year
The discovery year.

number

protected java.lang.String number
The sequential number in the year.
Constructor Detail

SupernovaStar

public SupernovaStar()
Constructs an empty SupernovaStar. It is used in StarClass#newInstance to review the XML data.

SupernovaStar

public SupernovaStar(int year,
                     java.lang.String number,
                     java.lang.String coor_string)
Constructs an SupernovaStar with data read from the catalog file.
Parameters:
year - the discovery year.
number - the sequential number in the year.
coor_string - the R.A. and Decl.
Method Detail

setName

public void setName(java.lang.String name)
Sets the name of this star.
Overrides:
setName in class DefaultStar
Parameters:
name - the name to set.

setHostGalaxy

public void setHostGalaxy(java.lang.String host)
Sets the host galaxy.
Parameters:
host - the host galaxy.

setDiscoveryDate

public void setDiscoveryDate(java.lang.String date)
Sets the discovery date.
Parameters:
date - the discovery date.

setDiscoveryMagnitude

public void setDiscoveryMagnitude(java.lang.String mag)
Sets the magnitude at the discovery.
Parameters:
mag - the magnitude at the discovery.

setReference

public void setReference(java.lang.String reference)
Sets the reference.
Parameters:
reference - the reference.

setType

public void setType(java.lang.String type)
Sets the type.
Parameters:
type - the type.

setDiscoverers

public void setDiscoverers(java.lang.String discoverers)
Sets the discoverers.
Parameters:
discoverers - the discoverers.

getNamePrefix

public java.lang.String getNamePrefix()
Gets the prefix of the name.
Overrides:
getNamePrefix in class DefaultStar
Returns:
the prefix of the name.

getVsnetName

public java.lang.String getVsnetName()
Gets the name of this star in a format for the VSNET (Variable Star Network). In principle, this method must be overrided in subclasses.
Overrides:
getVsnetName in class Star
Returns:
the name of this star.

getCatalogName

public java.lang.String getCatalogName()
Gets the name of the catalog. It must be unique among all subclasses.
Overrides:
getCatalogName in class CatalogStar
Returns:
the name of the catalog.

getCatalogAcronym

public java.lang.String getCatalogAcronym()
Gets the acronym of the catalog.
Overrides:
getCatalogAcronym in class CatalogStar
Returns:
the acronym of the catalog.

getCatalogCode

public java.lang.String getCatalogCode()
Gets the code of the catalog. It must be unique among all subclasses.
Overrides:
getCatalogCode in class CatalogStar
Returns:
the code of the catalog.

getCatalogCategoryNumber

protected int getCatalogCategoryNumber()
Gets the catalog category. It must be overrided in the subclasses.
Overrides:
getCatalogCategoryNumber in class DefaultStar
Returns:
the catalog category.

getHierarchicalFolders

public java.util.Vector getHierarchicalFolders()
Gets the list of the hierarchical folders.
Overrides:
getHierarchicalFolders in class DefaultStar
Returns:
the list of the hierarchical folders.