Package com.titan
Class Simulation
java.lang.Object
com.titan.Simulation
Runs the simulation according to the specified solver and controls
-
Constructor Summary
ConstructorsConstructorDescriptionSimulation(Solver solver, int stepSize, Controls controls, SolarSystem system, Rocket rocket) Simulation(Solver solver, int stepSize, SolarSystem system) -
Method Summary
Modifier and TypeMethodDescriptionvoidnextStep(int currentStep) voidrunFor(int seconds) voidrunFor(int seconds, boolean printProgress) static voidrunFor(Simulation simulation, int seconds, boolean printProgress) voidvoidrunForAYear(boolean printProgress) static voidrunForAYear(Simulation simulation, boolean printProgress)
-
Constructor Details
-
Simulation
public Simulation(Solver solver, int stepSize, Controls controls, SolarSystem system, Rocket rocket) -
Simulation
-
-
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
-