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>
Writer for CCSDS Orbit Comprehensive Message.
- Since:
- 11.0
- Author:
- Luc Maisonobe
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doubleVersion number implemented.static final intPadding width for aligning the '=' sign.Fields inherited from class org.orekit.files.ccsds.utils.generation.AbstractMessageWriter
DEFAULT_ORIGINATOR -
Constructor Summary
ConstructorsConstructorDescriptionOcmWriter(IERSConventions conventions, double equatorialRadius, double flattening, DataContext dataContext) Complete constructor. -
Method Summary
Modifier and TypeMethodDescriptiondoubleGet the central body equatorial radius.doubleGet 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, writeSegmentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.orekit.files.ccsds.utils.generation.MessageWriter
writeMessage
-
Field Details
-
CCSDS_OCM_VERS
public static final double CCSDS_OCM_VERSVersion number implemented.- See Also:
-
KVN_PADDING_WIDTH
public static final int KVN_PADDING_WIDTHPadding 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 ConventionsequatorialRadius- central body equatorial radiusflattening- central body flatteningdataContext- 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 IOExceptionWrite 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
-