net.aerith.misao.util.star
Class BlendingStar
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.BlendingStar
- public class BlendingStar
- extends MergedStar
The BlendingStar
represents a set of some blending
stars. The position of this object is the barycenter of all
blending stars. The magnitude of this object is the amount of all
blending stars. When a Star
is added to this object,
the position and magnitude are recalculated.
Fields inherited from class net.aerith.misao.util.Position |
x,
y |
Constructor Summary |
BlendingStar(Star star)
Constructs a BlendingStar of only one star, not
blending. |
Method Summary |
void |
append(Star star)
Appends a Star to this object. |
Star |
getBrightestStar()
Gets the brightest star. |
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.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 java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
wait,
wait,
wait |
BlendingStar
public BlendingStar(Star star)
- Constructs a
BlendingStar
of only one star, not
blending.
- Parameters:
star
- the initial star.
getBrightestStar
public Star getBrightestStar()
- Gets the brightest star.
- Returns:
- the brightest star.
getName
public java.lang.String getName()
- Gets the name of this star. Because each content star has a
different name, it returns the name of the brightest 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 each content star has a different name,
it returns the name of the brightest 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.