public class OutputStepHandler extends Object implements fr.cnes.sirius.patrius.propagation.sampling.PatriusFixedStepHandler
Constructor and Description |
---|
OutputStepHandler(OutputManager outputManager,
double propagationDuration)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
currentStateDisplay(fr.cnes.sirius.patrius.propagation.SpacecraftState currentState,
List<Map<String,Object>> variablesWithoutEventsList,
List<Map<String,Object>> variablesOnlyEventsList)
Method to display the current state variables in the console output
|
void |
finalStateDisplay(fr.cnes.sirius.patrius.propagation.SpacecraftState currentState,
List<Map<String,Object>> variablesWithoutEventsList,
List<Map<String,Object>> variablesOnlyEventsList)
Method to display the variables in the console for our final state
|
void |
handleFinalStep(fr.cnes.sirius.patrius.propagation.SpacecraftState finalState)
Handle the last step in the propagation to be sure that it is included in
the spacecraft list (file or memory).
|
void |
handleStep(fr.cnes.sirius.patrius.propagation.SpacecraftState currentState,
boolean isLast) |
void |
init(fr.cnes.sirius.patrius.propagation.SpacecraftState spacecraftState,
fr.cnes.sirius.patrius.time.AbsoluteDate date) |
void |
initialSpacecraftState(List<Map<String,Object>> variablesWithoutEventsList)
Display the initial state of the spacecraft
|
public OutputStepHandler(OutputManager outputManager, double propagationDuration)
outputManager
- output manager to store the outputspropagationDuration
- propagation duration (s)public void init(fr.cnes.sirius.patrius.propagation.SpacecraftState spacecraftState, fr.cnes.sirius.patrius.time.AbsoluteDate date)
init
in interface fr.cnes.sirius.patrius.propagation.sampling.PatriusFixedStepHandler
public void handleStep(fr.cnes.sirius.patrius.propagation.SpacecraftState currentState, boolean isLast)
handleStep
in interface fr.cnes.sirius.patrius.propagation.sampling.PatriusFixedStepHandler
public void handleFinalStep(fr.cnes.sirius.patrius.propagation.SpacecraftState finalState)
finalState
- final propagation spacecraft state.public void initialSpacecraftState(List<Map<String,Object>> variablesWithoutEventsList)
variablesWithoutEventsList
- The variables at the initial statepublic void currentStateDisplay(fr.cnes.sirius.patrius.propagation.SpacecraftState currentState, List<Map<String,Object>> variablesWithoutEventsList, List<Map<String,Object>> variablesOnlyEventsList)
currentState
- Current spacecraft statevariablesWithoutEventsList
- List of the variables of the state, without the eventsvariablesOnlyEventsList
- List of the events and the value of the variables at that timepublic void finalStateDisplay(fr.cnes.sirius.patrius.propagation.SpacecraftState currentState, List<Map<String,Object>> variablesWithoutEventsList, List<Map<String,Object>> variablesOnlyEventsList)
currentState
- finalState of our spacecraftvariablesWithoutEventsList
- List of the variables of the state, without the eventsvariablesOnlyEventsList
- List of the events and the value of the variables at that timeCopyright © 2022. All rights reserved.