Class StreamingAemWriter.SegmentWriter

    • Constructor Detail

      • 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 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.

        Sets the AemMetadataKey.START_TIME and AemMetadataKey.STOP_TIME in this segment's metadata if not already set by the user. Then calls writeHeader if it is the first segment) and AemWriter.writeMetadata(Generator, double, AemMetadata) to start the segment.

        Specified by:
        init in interface OrekitFixedStepHandler
        Parameters:
        s0 - initial state
        t - target time for the integration
        step - the duration in seconds of the fixed step. This value is positive even if propagation is backwards.