Package com.titan.model
Class SolarSystem
java.lang.Object
com.titan.model.SolarSystem
-
Constructor Summary
ConstructorsConstructorDescriptionconstructs our SolarSystem with all the planets plus Moon and TitanSolarSystem(String path) -
Method Summary
Modifier and TypeMethodDescriptioncreateRocketAtPointInSpace(String name, double mass, Vector initialPosition, Vector initialVelocity) creates a rocketcreateRocketOnEarth(String name, double mass) creates a rocketreturns the arraylist containingintgetTitan()static voidvoidsetAllPositions(Vector vector) voidsetAllVelocities(Vector vector) voidstageRocket(Rocket rocket)
-
Constructor Details
-
SolarSystem
-
SolarSystem
public SolarSystem()constructs our SolarSystem with all the planets plus Moon and Titan
-
-
Method Details
-
getCelestialObjects
-
getIndexTitan
public int getIndexTitan() -
getTitan
-
createRocketOnEarth
-
createRocketAtPointInSpace
public Rocket createRocketAtPointInSpace(String name, double mass, Vector initialPosition, Vector initialVelocity) creates a rocket- Parameters:
name- name of the rocketmass- mass of the rocketinitialPosition- position of the rocketinitialVelocity- velocity of the rocket- Returns:
- rocket that will be added to celestialObjects
-
stageRocket
-
getAllPositions
-
getAllVelocities
-
getAllMasses
-
getRocket
-
main
-
setAllPositions
-
setAllVelocities
-
toCSVString
-