public class StreamingOemWriter.SegmentWriter extends Object implements OrekitFixedStepHandler
Constructor and Description |
---|
SegmentWriter()
Empty constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
finish(SpacecraftState finalState)
Finalize propagation.
|
void |
handleStep(SpacecraftState currentState)
Handle the current step.
|
void |
init(SpacecraftState s0,
AbsoluteDate t,
double step)
Initialize step handler at the start of a propagation.
|
public SegmentWriter()
This constructor is not strictly necessary, but it prevents spurious javadoc warnings with JDK 18 and later.
public void init(SpacecraftState s0, AbsoluteDate t, double step)
This method is called once at the start of the propagation. It may be used by the step handler to initialize some internal data if needed.
Writes the header automatically on first segment.
Sets the OemMetadataKey.START_TIME
and OemMetadataKey.STOP_TIME
in this
segment's metadata if not already set by the user.
init
in interface OrekitFixedStepHandler
s0
- initial statet
- target time for the integrationstep
- the duration in seconds of the fixed step. This value is
positive even if propagation is backwards.public void handleStep(SpacecraftState currentState)
handleStep
in interface OrekitFixedStepHandler
currentState
- current state at step timepublic void finish(SpacecraftState finalState)
finish
in interface OrekitFixedStepHandler
finalState
- state at propagation endCopyright © 2002-2023 CS GROUP. All rights reserved.