Package com.titan.controls
Class Controls
java.lang.Object
com.titan.controls.Controls
- Direct Known Subclasses:
FirstTestControls
,FlightControlsTwoEngineFiresForLaunch
,SecondTestControls
abstract class to implement custom controls for e.g. the rocket during the run of the simulation.
Controls logging as well. Technically every aspect of the system can be accessed and altered.
Controls logging as well. Technically every aspect of the system can be accessed and altered.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract void
execute
(SolarSystem system, Rocket rocket, int currentStep, int stepSize) Called with every step of the solving process
-
Field Details
-
missionLogger
logs all data related to mission success like velocities, speeds and orbital data -
engineLogger
logs data related to the engine and fuel consumption
-
-
Constructor Details
-
Controls
public Controls()constructs a Controls object and instantiates the loggers
-
-
Method Details
-
getMissionLogger
- Returns:
- returns the instance of the mission logger
-
getEngineLogger
- Returns:
- returns the instance of the engine logger
-
execute
Called with every step of the solving process- Parameters:
system
-rocket
-currentStep
-stepSize
-
-