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
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
ConstructorsConstructorDescriptionTdmWriter(IERSConventions conventions, DataContext dataContext, RangeUnitsConverter converter) Complete constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidwriteSegmentContent(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, 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_TDM_VERS
public static final double CCSDS_TDM_VERSVersion number implemented.- See Also:
-
KVN_PADDING_WIDTH
public static final int KVN_PADDING_WIDTHPadding width for aligning the '=' sign.- See Also:
-
-
Constructor Details
-
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 Details
-
writeSegmentContent
protected void writeSegmentContent(Generator generator, double formatVersion, Segment<TdmMetadata, ObservationsBlock> segment) throws IOExceptionWrite one segment content (without XML wrapping).- Specified by:
writeSegmentContentin 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
-