Class StreamingOcmWriter.BlockWriter

java.lang.Object
org.orekit.files.ccsds.ndm.odm.ocm.StreamingOcmWriter.BlockWriter
All Implemented Interfaces:
OrekitFixedStepHandler
Enclosing class:
StreamingOcmWriter

public class StreamingOcmWriter.BlockWriter extends Object implements OrekitFixedStepHandler
A writer for a trajectory state history block of an OCM.
  • Constructor Details

    • BlockWriter

      public BlockWriter()
      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

      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 OcmMetadataKey.START_TIME and OcmMetadataKey.STOP_TIME in this block metadata if not already set by the user.

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

      public void handleStep(SpacecraftState currentState)
      Handle the current step..
      Specified by:
      handleStep in interface OrekitFixedStepHandler
      Parameters:
      currentState - current state at step time
    • finish

      public void finish(SpacecraftState finalState)
      Finalize propagation..
      Specified by:
      finish in interface OrekitFixedStepHandler
      Parameters:
      finalState - state at propagation end