astro.ex10.model
Class Planet

java.lang.Object
  extended by astro.ex10.model.CelestialBody
      extended by astro.ex10.model.Planet

public class Planet
extends CelestialBody


Field Summary
private  java.util.Set<Moon> moons
           
 
Constructor Summary
Planet()
           
 
Method Summary
 Planet addMoon(Moon moon)
           
 java.util.Set<Moon> getMoons()
           
 void setMoons(java.util.Set<Moon> moons)
           
 
Methods inherited from class astro.ex10.model.CelestialBody
getDiscovery, getId, getMass, getName, setDiscovery, setId, setMass, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

moons

private java.util.Set<Moon> moons
Constructor Detail

Planet

public Planet()
Method Detail

getMoons

public java.util.Set<Moon> getMoons()

setMoons

public void setMoons(java.util.Set<Moon> moons)

addMoon

public Planet addMoon(Moon moon)