Package com.titan
Class SolarSystemSimulation
java.lang.Object
com.titan.SolarSystemSimulation
Runs the simulation according to the specified solver and controls
-
Constructor Summary
ConstructorsConstructorDescriptionSolarSystemSimulation(Solver solver, int stepSize, Controls controls, SolarSystem system, Rocket rocket) SolarSystemSimulation(Solver solver, int stepSize, SolarSystem system) -
Method Summary
Modifier and TypeMethodDescriptionvoidnextStep(int currentStep) voidrunFor(int seconds) voidrunFor(int seconds, boolean printProgress) static voidrunFor(SolarSystemSimulation simulation, int seconds, boolean printProgress) voidvoidrunForAYear(boolean printProgress) static voidrunForAYear(SolarSystemSimulation simulation, boolean printProgress)
-
Constructor Details
-
SolarSystemSimulation
public SolarSystemSimulation(Solver solver, int stepSize, Controls controls, SolarSystem system, Rocket rocket) -
SolarSystemSimulation
-
-
Method Details
-
nextStep
public void nextStep(int currentStep) -
getSystem
-
getRocket
-
runFor
public void runFor(int seconds) -
runFor
public void runFor(int seconds, boolean printProgress) -
runForAYear
public void runForAYear() -
runForAYear
public void runForAYear(boolean printProgress) -
runForAYear
-
runFor
-