Class StreamingAemWriter.SegmentWriter
java.lang.Object
org.orekit.files.ccsds.ndm.adm.aem.StreamingAemWriter.SegmentWriter
- All Implemented Interfaces:
OrekitFixedStepHandler
- Enclosing class:
StreamingAemWriter
A writer for a segment of an AEM.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfinish(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.
-
Constructor Details
-
SegmentWriter
public SegmentWriter()Empty constructor.This constructor is not strictly necessary, but it prevents spurious javadoc warnings with JDK 18 and later.
- Since:
- 12.0
-
-
Method Details
-
init
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.
Sets the
AemMetadataKey.START_TIMEandAemMetadataKey.STOP_TIMEin this segment's metadata if not already set by the user. Then callswriteHeaderif it is the first segment) andAemWriter.writeMetadata(Generator, double, AemMetadata)to start the segment.- 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
Handle the current step..- Specified by:
handleStepin interfaceOrekitFixedStepHandler- Parameters:
currentState- current state at step time
-
finish
Finalize propagation..- Specified by:
finishin interfaceOrekitFixedStepHandler- Parameters:
finalState- state at propagation end
-