public class StreamingOemWriter.SegmentWriter extends Object implements OrekitFixedStepHandler
Constructor and Description |
---|
SegmentWriter() |
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 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.
Sets the OemMetadataKey.START_TIME
and OemMetadataKey.STOP_TIME
in this
segment's metadata if not already set by the user. Then calls writeHeader
if it is the first segment) and OemWriter.writeMetadata(Generator, OemMetadata)
to start the segment.
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-2021 CS GROUP. All rights reserved.