Package org.orekit.files.ccsds.ndm.tdm
Class TdmWriter
- java.lang.Object
-
- org.orekit.files.ccsds.utils.generation.AbstractMessageWriter<TdmHeader,Segment<TdmMetadata,ObservationsBlock>,Tdm>
-
- org.orekit.files.ccsds.ndm.tdm.TdmWriter
-
- All Implemented Interfaces:
MessageWriter<TdmHeader,Segment<TdmMetadata,ObservationsBlock>,Tdm>
public class TdmWriter extends AbstractMessageWriter<TdmHeader,Segment<TdmMetadata,ObservationsBlock>,Tdm>
Writer for CCSDS Tracking Data Message.- Since:
- 11.0
- Author:
- Luc Maisonobe
-
-
Field Summary
Fields Modifier and Type Field Description static double
CCSDS_TDM_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 TdmWriter(IERSConventions conventions, DataContext dataContext, RangeUnitsConverter converter)
Complete constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
writeSegmentContent(Generator generator, double formatVersion, Segment<TdmMetadata,ObservationsBlock> 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_TDM_VERS
public static final double CCSDS_TDM_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
-
TdmWriter
public TdmWriter(IERSConventions conventions, DataContext dataContext, RangeUnitsConverter converter)
Complete constructor.Calling this constructor directly is not recommended. Users should rather use
writerBuilder.buildTdmWriter()
.- Parameters:
conventions
- IERS ConventionsdataContext
- used to retrieve frames, time scales, etc.converter
- converter forRange Units
(may be null if there are no range observations inRange Units
)
-
-
Method Detail
-
writeSegmentContent
protected void writeSegmentContent(Generator generator, double formatVersion, Segment<TdmMetadata,ObservationsBlock> segment) throws IOException
Write one segment content (without XML wrapping).- Specified by:
writeSegmentContent
in classAbstractMessageWriter<TdmHeader,Segment<TdmMetadata,ObservationsBlock>,Tdm>
- Parameters:
generator
- generator to use for producing outputformatVersion
- format version to usesegment
- segment to write- Throws:
IOException
- if any buffer writing operations fails
-
-