Class OcmWriter

All Implemented Interfaces:
MessageWriter<OdmHeader,Segment<OcmMetadata,OcmData>,Ocm>

Writer for CCSDS Orbit Comprehensive Message.
Since:
11.0
Author:
Luc Maisonobe
See Also:
  • Field Details

    • CCSDS_OCM_VERS

      public static final double CCSDS_OCM_VERS
      Version number implemented.
      See Also:
    • KVN_PADDING_WIDTH

      public static final int KVN_PADDING_WIDTH
      Padding width for aligning the '=' sign.
      See Also:
  • Constructor Details

    • OcmWriter

      public OcmWriter(IERSConventions conventions, double equatorialRadius, double flattening, DataContext dataContext)
      Complete constructor.

      Calling this constructor directly is not recommended. Users should rather use writerBuilder.buildOcmWriter().

      Parameters:
      conventions - IERS Conventions
      equatorialRadius - central body equatorial radius
      flattening - central body flattening
      dataContext - used to retrieve frames, time scales, etc.
  • Method Details

    • getEquatorialRadius

      public double getEquatorialRadius()
      Get the central body equatorial radius.
      Returns:
      central body equatorial radius
      Since:
      12.0
    • getFlattening

      public double getFlattening()
      Get the central body flattening.
      Returns:
      central body flattening
      Since:
      12.0
    • writeSegmentContent

      protected void writeSegmentContent(Generator generator, double formatVersion, Segment<OcmMetadata,OcmData> segment) throws IOException
      Write one segment content (without XML wrapping).
      Specified by:
      writeSegmentContent in class AbstractMessageWriter<OdmHeader,Segment<OcmMetadata,OcmData>,Ocm>
      Parameters:
      generator - generator to use for producing output
      formatVersion - format version to use
      segment - segment to write
      Throws:
      IOException - if any buffer writing operations fails