Class OpmWriter
- java.lang.Object
-
- org.orekit.files.ccsds.utils.generation.AbstractMessageWriter<OdmHeader,Segment<OdmCommonMetadata,OpmData>,Opm>
-
- org.orekit.files.ccsds.ndm.odm.opm.OpmWriter
-
- All Implemented Interfaces:
MessageWriter<OdmHeader,Segment<OdmCommonMetadata,OpmData>,Opm>
public class OpmWriter extends AbstractMessageWriter<OdmHeader,Segment<OdmCommonMetadata,OpmData>,Opm>
Writer for CCSDS Orbit Parameter Message.- Since:
- 11.0
- Author:
- Luc Maisonobe
-
-
Field Summary
Fields Modifier and Type Field Description static double
CCSDS_OPM_VERS
Version number implemented.static int
KVN_PADDING_WIDTH
Padding width for aligning the '=' sign.-
Fields inherited from class org.orekit.files.ccsds.utils.generation.AbstractMessageWriter
DEFAULT_ORIGINATOR
-
-
Constructor Summary
Constructors Constructor Description OpmWriter(IERSConventions conventions, DataContext dataContext, AbsoluteDate missionReferenceDate)
Complete constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
writeSegmentContent(Generator generator, double formatVersion, Segment<OdmCommonMetadata,OpmData> 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_OPM_VERS
public static final double CCSDS_OPM_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
-
OpmWriter
public OpmWriter(IERSConventions conventions, DataContext dataContext, AbsoluteDate missionReferenceDate)
Complete constructor.Calling this constructor directly is not recommended. Users should rather use
writerBuilder.buildOpmWriter()
.- Parameters:
conventions
- IERS ConventionsdataContext
- used to retrieve frames, time scales, etc.missionReferenceDate
- reference date for Mission Elapsed Time or Mission Relative Time time systems
-
-
Method Detail
-
writeSegmentContent
protected void writeSegmentContent(Generator generator, double formatVersion, Segment<OdmCommonMetadata,OpmData> segment) throws IOException
Write one segment content (without XML wrapping).- Specified by:
writeSegmentContent
in classAbstractMessageWriter<OdmHeader,Segment<OdmCommonMetadata,OpmData>,Opm>
- Parameters:
generator
- generator to use for producing outputformatVersion
- format version to usesegment
- segment to write- Throws:
IOException
- if any buffer writing operations fails
-
-