net.aerith.misao.util.star
Class UnifiedStar

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.MergedStar
                          |
                          +--net.aerith.misao.util.star.UnifiedStar

public class UnifiedStar
extends MergedStar

The UnifiedStar represents a set of some data of one star. The position and magnitude of this object is the simple average of all data. When a Star is added to this object, the position and magnitude are recalculated.


Fields inherited from class net.aerith.misao.util.star.MergedStar
content_list
 
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
UnifiedStar(Star star)
          Constructs an UnifiedStar of only one star, not unified.
 
Method Summary
 void append(Star star)
          Appends a Star to this object.
 java.lang.String getName()
          Gets the name of this star.
 java.lang.String getVsnetName()
          Gets the name of this star in a format for the VSNET (Variable Star Network).
 
Methods inherited from class net.aerith.misao.util.star.MergedStar
add, getOutputStrings, getOutputStringsWithXY, getPxfStringsWithXY, getStarAt, getStarCount, mapCoordinatesToXY, mapXYToCoordinates, rescale
 
Methods inherited from class net.aerith.misao.util.star.Star
equals, getColor, getCoor, getCoorString, getCoorStringWithoutUnit, getDecl, getItemDelimiter, getKeyAndValueDelimiter, getKeyAndValues, getOutputString, getOutputStringWithoutName, getOutputStringWithXY, getPair, getPositionString, getPxfString, getPxfStringWithXY, getRA, mapCoordinatesToXY, mapXYToCoordinates, setColor, setCoor, setKeyAndValue, setPair
 
Methods inherited from class net.aerith.misao.util.star.StarPosition
getMag, paramString, setMag, toString
 
Methods inherited from class net.aerith.misao.util.Position
getDistanceFrom, getPositionAngleTo, getX, getY, setPosition, setX, setY
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Constructor Detail

UnifiedStar

public UnifiedStar(Star star)
Constructs an UnifiedStar of only one star, not unified.
Parameters:
star - the initial star.
Method Detail

getName

public java.lang.String getName()
Gets the name of this star. Because only stars with the same name can be unified, the names of all content stars are same. So it returns the name of a content star.
Overrides:
getName in class Star
Returns:
the name of this star.

getVsnetName

public java.lang.String getVsnetName()
Gets the name of this star in a format for the VSNET (Variable Star Network). Because only stars with the same name can be unified, the names of all content stars are same. So it returns the name of a content star.
Overrides:
getVsnetName in class Star
Returns:
the name of this star.

append

public void append(Star star)
Appends a Star to this object. The R.A. and Decl., (x,y) position and magnitude are recalculated.
Overrides:
append in class MergedStar
Parameters:
star - the star to append.