Class Moon

Direct Known Subclasses:
TheMoon

public class Moon extends SpaceObject
The Class Moon.
Author:
velo
  • 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 radius
      planet_orbitted - the planet orbitted
      atmosphere_density - the atmosphere density
      max_temp_c - the max temp c
      min_temp_c - the min temp c
      distance_to_orbitted_planet - the distance to orbitted planet
      time_to_orbit_planet_years - the time to orbit planet years
      composition - the composition
      mass - 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

      public Planet getPlanet_orbitted()
      Gets the planet orbitted.
      Returns:
      the planet_orbitted
    • setPlanet_orbitted

      public void setPlanet_orbitted(Planet planet_orbitted)
      Sets the planet orbitted.
      Parameters:
      planet_orbitted - the planet_orbitted to set
    • getAtmosphere_density

      public Atmosphere_Density getAtmosphere_density()
      Gets the atmosphere density.
      Returns:
      the atmosphere_density
    • setAtmosphere_density

      public void setAtmosphere_density(Atmosphere_Density atmosphere_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

      public CelestialObjectComposition getComposition()
      Gets the composition.
      Returns:
      the composition
    • setComposition

      public void setComposition(CelestialObjectComposition composition)
      Sets the composition.
      Parameters:
      composition - the composition to set