Package velo.ladaalpha.fields.astronomy
Class Planet
java.lang.Object
velo.ladaalpha.fields.astronomy.SpaceObject
velo.ladaalpha.fields.astronomy.Planet
- Direct Known Subclasses:
 Earth
The Class Planet.
- 
Constructor Summary
ConstructorsConstructorDescriptionPlanet(long radius, double tilt, Star star_orbitted, PlanetTypes type, int moons_n, int rings_n, Atmosphere_Density atmosphere_density, int max_temp_c, int min_temp_c, long distance_to_orbitted_star, int time_to_orbit_star_years, CelestialObjectComposition composition, long mass) Instantiates a new planet. - 
Method Summary
Modifier and TypeMethodDescriptionGets the atmosphere density.Gets the composition.longGets the distance to orbitted star.intGets the max temp c.intGets the min temp c.intGets the moons n.longGets the radius.intGets the rings n.Gets the star orbitted.doublegetTilt()Gets the tilt.intGets the time to orbit star years.getType()Gets the type.voidsetAtmosphere_density(Atmosphere_Density atmosphere_density) Sets the atmosphere density.voidsetComposition(CelestialObjectComposition composition) Sets the composition.voidsetDistance_to_orbitted_star(long distance_to_orbitted_star) Sets the distance to orbitted star.voidsetMax_temp_c(int max_temp_c) Sets the max temp c.voidsetMin_temp_c(int min_temp_c) Sets the min temp c.voidsetMoons_n(int moons_n) Sets the moons n.voidsetRadius(long radius) Sets the radius.voidsetRings_n(int rings_n) Sets the rings n.voidsetStar_orbitted(Star star_orbitted) Sets the star orbitted.voidsetTilt(double tilt) Sets the tilt.voidsetTime_to_orbit_star_years(int time_to_orbit_star_years) Sets the time to orbit star years.voidsetType(PlanetTypes type) Sets the type. 
- 
Constructor Details
- 
Planet
public Planet(long radius, double tilt, Star star_orbitted, PlanetTypes type, int moons_n, int rings_n, Atmosphere_Density atmosphere_density, int max_temp_c, int min_temp_c, long distance_to_orbitted_star, int time_to_orbit_star_years, CelestialObjectComposition composition, long mass) Instantiates a new planet.- Parameters:
 radius- the radiustilt- the tiltstar_orbitted- the star orbittedtype- the typemoons_n- the moons nrings_n- the rings natmosphere_density- the atmosphere densitymax_temp_c- the max temp cmin_temp_c- the min temp cdistance_to_orbitted_star- the distance to orbitted startime_to_orbit_star_years- the time to orbit star yearscomposition- the compositionmass- the mass
 
 - 
 - 
Method Details
- 
getRadius
public long getRadius()Gets the radius.- Returns:
 - the radius
 
 - 
setRadius
public void setRadius(long radius) Sets the radius.- Parameters:
 radius- the radius to set
 - 
getTilt
public double getTilt()Gets the tilt.- Returns:
 - the tilt
 
 - 
setTilt
public void setTilt(double tilt) Sets the tilt.- Parameters:
 tilt- the tilt to set
 - 
getStar_orbitted
Gets the star orbitted.- Returns:
 - the star_orbitted
 
 - 
setStar_orbitted
Sets the star orbitted.- Parameters:
 star_orbitted- the star_orbitted to set
 - 
getType
Gets the type.- Returns:
 - the type
 
 - 
setType
Sets the type.- Parameters:
 type- the type to set
 - 
getMoons_n
public int getMoons_n()Gets the moons n.- Returns:
 - the moons_n
 
 - 
setMoons_n
public void setMoons_n(int moons_n) Sets the moons n.- Parameters:
 moons_n- the moons_n to set
 - 
getRings_n
public int getRings_n()Gets the rings n.- Returns:
 - the rings_n
 
 - 
setRings_n
public void setRings_n(int rings_n) Sets the rings n.- Parameters:
 rings_n- the rings_n to set
 - 
getAtmosphere_density
Gets the atmosphere density.- Returns:
 - the atmosphere_density
 
 - 
setAtmosphere_density
Sets the atmosphere density.- Parameters:
 atmosphere_density- the atmosphere_density to set
 - 
getMax_temp_c
public int getMax_temp_c()Gets the max temp c.- Returns:
 - the max_temp_c
 
 - 
setMax_temp_c
public void setMax_temp_c(int max_temp_c) Sets the max temp c.- Parameters:
 max_temp_c- the max_temp_c to set
 - 
getMin_temp_c
public int getMin_temp_c()Gets the min temp c.- Returns:
 - the min_temp_c
 
 - 
setMin_temp_c
public void setMin_temp_c(int min_temp_c) Sets the min temp c.- Parameters:
 min_temp_c- the min_temp_c to set
 - 
getDistance_to_orbitted_star
public long getDistance_to_orbitted_star()Gets the distance to orbitted star.- Returns:
 - the distance_to_orbitted_star
 
 - 
setDistance_to_orbitted_star
public void setDistance_to_orbitted_star(long distance_to_orbitted_star) Sets the distance to orbitted star.- Parameters:
 distance_to_orbitted_star- the distance_to_orbitted_star to set
 - 
getTime_to_orbit_star_years
public int getTime_to_orbit_star_years()Gets the time to orbit star years.- Returns:
 - the time_to_orbit_star_years
 
 - 
setTime_to_orbit_star_years
public void setTime_to_orbit_star_years(int time_to_orbit_star_years) Sets the time to orbit star years.- Parameters:
 time_to_orbit_star_years- the time_to_orbit_star_years to set
 - 
getComposition
Gets the composition.- Returns:
 - the composition
 
 - 
setComposition
Sets the composition.- Parameters:
 composition- the composition to set
 
 -