Package velo.ladaalpha.fields.astronomy
Class Moon
java.lang.Object
velo.ladaalpha.fields.astronomy.SpaceObject
velo.ladaalpha.fields.astronomy.Moon
- Direct Known Subclasses:
 TheMoon
The Class Moon.
- Author:
 - velo
 
- 
Constructor Summary
ConstructorsConstructorDescriptionMoon(long radius, Planet planet_orbitted, Atmosphere_Density atmosphere_density, int max_temp_c, int min_temp_c, long distance_to_orbitted_planet, double time_to_orbit_planet_years, CelestialObjectComposition composition, long mass) Instantiates a new moon. - 
Method Summary
Modifier and TypeMethodDescriptionGets the atmosphere density.Gets the composition.longGets the distance to orbitted planet.intGets the max temp c.intGets the min temp c.Gets the planet orbitted.longGets the radius.doubleGets the time to orbit planet years.voidsetAtmosphere_density(Atmosphere_Density atmosphere_density) Sets the atmosphere density.voidsetComposition(CelestialObjectComposition composition) Sets the composition.voidsetDistance_to_orbitted_planet(long distance_to_orbitted_planet) Sets the distance to orbitted planet.voidsetMax_temp_c(int max_temp_c) Sets the max temp c.voidsetMin_temp_c(int min_temp_c) Sets the min temp c.voidsetPlanet_orbitted(Planet planet_orbitted) Sets the planet orbitted.voidsetRadius(long radius) Sets the radius.voidsetTime_to_orbit_planet_years(double time_to_orbit_planet_years) Sets the time to orbit planet years. 
- 
Constructor Details
- 
Moon
public Moon(long radius, Planet planet_orbitted, Atmosphere_Density atmosphere_density, int max_temp_c, int min_temp_c, long distance_to_orbitted_planet, double time_to_orbit_planet_years, CelestialObjectComposition composition, long mass) Instantiates a new moon.- Parameters:
 radius- the radiusplanet_orbitted- the planet orbittedatmosphere_density- the atmosphere densitymax_temp_c- the max temp cmin_temp_c- the min temp cdistance_to_orbitted_planet- the distance to orbitted planettime_to_orbit_planet_years- the time to orbit planet 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
 - 
getPlanet_orbitted
Gets the planet orbitted.- Returns:
 - the planet_orbitted
 
 - 
setPlanet_orbitted
Sets the planet orbitted.- Parameters:
 planet_orbitted- the planet_orbitted 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_planet
public long getDistance_to_orbitted_planet()Gets the distance to orbitted planet.- Returns:
 - the distance_to_orbitted_planet
 
 - 
setDistance_to_orbitted_planet
public void setDistance_to_orbitted_planet(long distance_to_orbitted_planet) Sets the distance to orbitted planet.- Parameters:
 distance_to_orbitted_planet- the distance_to_orbitted_planet to set
 - 
getTime_to_orbit_planet_years
public double getTime_to_orbit_planet_years()Gets the time to orbit planet years.- Returns:
 - the time_to_orbit_planet_years
 
 - 
setTime_to_orbit_planet_years
public void setTime_to_orbit_planet_years(double time_to_orbit_planet_years) Sets the time to orbit planet years.- Parameters:
 time_to_orbit_planet_years- the time_to_orbit_planet_years to set
 - 
getComposition
Gets the composition.- Returns:
 - the composition
 
 - 
setComposition
Sets the composition.- Parameters:
 composition- the composition to set
 
 -