Class StreamingOemWriter.SegmentWriter
- java.lang.Object
-
- org.orekit.files.ccsds.ndm.odm.oem.StreamingOemWriter.SegmentWriter
-
- All Implemented Interfaces:
OrekitFixedStepHandler
- Enclosing class:
- StreamingOemWriter
public class StreamingOemWriter.SegmentWriter extends Object implements OrekitFixedStepHandler
A writer for a segment of an OEM.
-
-
Constructor Summary
Constructors Constructor Description SegmentWriter()Empty constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfinish(SpacecraftState finalState)Finalize propagation.voidhandleStep(SpacecraftState currentState)Handle the current step.voidinit(SpacecraftState s0, AbsoluteDate t, double step)Initialize step handler at the start of a propagation.
-
-
-
Method Detail
-
init
public void init(SpacecraftState s0, AbsoluteDate t, double step)
Initialize step handler at the start of a propagation.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_TIMEandOemMetadataKey.STOP_TIMEin this segment's metadata if not already set by the user.- Specified by:
initin interfaceOrekitFixedStepHandler- Parameters:
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.
-
handleStep
public void handleStep(SpacecraftState currentState)
Handle the current step..- Specified by:
handleStepin interfaceOrekitFixedStepHandler- Parameters:
currentState- current state at step time
-
finish
public void finish(SpacecraftState finalState)
Finalize propagation..- Specified by:
finishin interfaceOrekitFixedStepHandler- Parameters:
finalState- state at propagation end
-
-