Class OcmWriter
- java.lang.Object
-
- org.orekit.files.ccsds.utils.generation.AbstractMessageWriter<OdmHeader,Segment<OcmMetadata,OcmData>,Ocm>
-
- org.orekit.files.ccsds.ndm.odm.ocm.OcmWriter
-
- All Implemented Interfaces:
MessageWriter<OdmHeader,Segment<OcmMetadata,OcmData>,Ocm>
public class OcmWriter extends AbstractMessageWriter<OdmHeader,Segment<OcmMetadata,OcmData>,Ocm>
Writer for CCSDS Orbit Comprehensive Message.- Since:
- 11.0
- Author:
- Luc Maisonobe
- See Also:
EphemerisOcmWriter,StreamingOcmWriter
-
-
Field Summary
Fields Modifier and Type Field Description static doubleCCSDS_OCM_VERSVersion number implemented.static intKVN_PADDING_WIDTHPadding width for aligning the '=' sign.-
Fields inherited from class org.orekit.files.ccsds.utils.generation.AbstractMessageWriter
DEFAULT_ORIGINATOR
-
-
Constructor Summary
Constructors Constructor Description OcmWriter(IERSConventions conventions, double equatorialRadius, double flattening, DataContext dataContext)Complete constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetEquatorialRadius()Get the central body equatorial radius.doublegetFlattening()Get the central body flattening.protected voidwriteSegmentContent(Generator generator, double formatVersion, Segment<OcmMetadata,OcmData> segment)Write one segment content (without XML wrapping).-
Methods inherited from class org.orekit.files.ccsds.utils.generation.AbstractMessageWriter
getContext, getDefaultVersion, getFormatVersionKey, getRoot, getTimeConverter, getVersion, setContext, writeFooter, writeHeader, writeSegment
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.orekit.files.ccsds.utils.generation.MessageWriter
writeMessage
-
-
-
-
Field Detail
-
CCSDS_OCM_VERS
public static final double CCSDS_OCM_VERS
Version number implemented.- See Also:
- Constant Field Values
-
KVN_PADDING_WIDTH
public static final int KVN_PADDING_WIDTH
Padding width for aligning the '=' sign.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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 ConventionsequatorialRadius- central body equatorial radiusflattening- central body flatteningdataContext- used to retrieve frames, time scales, etc.
-
-
Method Detail
-
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:
writeSegmentContentin classAbstractMessageWriter<OdmHeader,Segment<OcmMetadata,OcmData>,Ocm>- Parameters:
generator- generator to use for producing outputformatVersion- format version to usesegment- segment to write- Throws:
IOException- if any buffer writing operations fails
-
-