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 TypeMethodDescriptionvoid
nextStep
(int currentStep) void
runFor
(int seconds) void
runFor
(int seconds, boolean printProgress) static void
runFor
(SolarSystemSimulation simulation, int seconds, boolean printProgress) void
void
runForAYear
(boolean printProgress) static void
runForAYear
(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
-