Package velo.ladaalpha.fields.astronomy
Class Star
java.lang.Object
velo.ladaalpha.fields.astronomy.SpaceObject
velo.ladaalpha.fields.astronomy.Star
- Direct Known Subclasses:
 TheSun
The Class Star.
- 
Constructor Summary
ConstructorsConstructorDescriptionStar(double distance_ly, double apparent_magnitude, double absolute_magnitude, double liminosity, Color color, double radius, StellarSpectrum spectrum) Instantiates a new star. - 
Method Summary
Modifier and TypeMethodDescriptionstatic doublecomputeDistanceGivenTheta(double theta) Compute distance given theta.doubleGets the absolute magnitude.doubleGets the apparent magnitude.getColor()Gets the color.doubleGets the distance ly.doubleGets the liminosity.doubleGets the radius.Gets the spectrum.voidsetAbsolute_magnitude(double absolute_magnitude) Sets the absolute magnitude.voidsetApparent_magnitude(double apparent_magnitude) Sets the apparent magnitude.voidSets the color.voidsetDistance_ly(double distance_ly) Sets the distance ly.voidsetLiminosity(double liminosity) Sets the liminosity.voidsetRadius(double radius) Sets the radius.voidsetSpectrum(StellarSpectrum spectrum) Sets the spectrum. 
- 
Constructor Details
- 
Star
public Star(double distance_ly, double apparent_magnitude, double absolute_magnitude, double liminosity, Color color, double radius, StellarSpectrum spectrum) Instantiates a new star.- Parameters:
 distance_ly- the distance lyapparent_magnitude- the apparent magnitudeabsolute_magnitude- the absolute magnitudeliminosity- the liminositycolor- the colorradius- the radiusspectrum- the spectrum
 
 - 
 - 
Method Details
- 
computeDistanceGivenTheta
public static double computeDistanceGivenTheta(double theta) Compute distance given theta.- Parameters:
 theta- the theta- Returns:
 - the double
 
 - 
getDistance_ly
public double getDistance_ly()Gets the distance ly.- Returns:
 - the distance_ly
 
 - 
setDistance_ly
public void setDistance_ly(double distance_ly) Sets the distance ly.- Parameters:
 distance_ly- the distance_ly to set
 - 
getApparent_magnitude
public double getApparent_magnitude()Gets the apparent magnitude.- Returns:
 - the apparent_magnitude
 
 - 
setApparent_magnitude
public void setApparent_magnitude(double apparent_magnitude) Sets the apparent magnitude.- Parameters:
 apparent_magnitude- the apparent_magnitude to set
 - 
getAbsolute_magnitude
public double getAbsolute_magnitude()Gets the absolute magnitude.- Returns:
 - the absolute_magnitude
 
 - 
setAbsolute_magnitude
public void setAbsolute_magnitude(double absolute_magnitude) Sets the absolute magnitude.- Parameters:
 absolute_magnitude- the absolute_magnitude to set
 - 
getLiminosity
public double getLiminosity()Gets the liminosity.- Returns:
 - the liminosity
 
 - 
setLiminosity
public void setLiminosity(double liminosity) Sets the liminosity.- Parameters:
 liminosity- the liminosity to set
 - 
getColor
Gets the color.- Returns:
 - the color
 
 - 
setColor
Sets the color.- Parameters:
 color- the color to set
 - 
getRadius
public double getRadius()Gets the radius.- Returns:
 - the radius
 
 - 
setRadius
public void setRadius(double radius) Sets the radius.- Parameters:
 radius- the radius to set
 - 
getSpectrum
Gets the spectrum.- Returns:
 - the spectrum
 
 - 
setSpectrum
Sets the spectrum.- Parameters:
 spectrum- the spectrum to set
 
 -