Class AcmWriter
- java.lang.Object
-
- org.orekit.files.ccsds.utils.generation.AbstractMessageWriter<AdmHeader,Segment<AcmMetadata,AcmData>,Acm>
-
- org.orekit.files.ccsds.ndm.adm.acm.AcmWriter
-
- All Implemented Interfaces:
MessageWriter<AdmHeader,Segment<AcmMetadata,AcmData>,Acm>
public class AcmWriter extends AbstractMessageWriter<AdmHeader,Segment<AcmMetadata,AcmData>,Acm>
Writer for CCSDS Attitude Comprehensive Message.- Since:
- 12.0
- Author:
- Luc Maisonobe
-
-
Field Summary
Fields Modifier and Type Field Description static double
CCSDS_ACM_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 AcmWriter(IERSConventions conventions, DataContext dataContext)
Complete constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
writeSegmentContent(Generator generator, double formatVersion, Segment<AcmMetadata,AcmData> 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_ACM_VERS
public static final double CCSDS_ACM_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
-
AcmWriter
public AcmWriter(IERSConventions conventions, DataContext dataContext)
Complete constructor.Calling this constructor directly is not recommended. Users should rather use
writerBuilder.buildAcmWriter()
.- Parameters:
conventions
- IERS ConventionsdataContext
- used to retrieve frames, time scales, etc.
-
-
Method Detail
-
writeSegmentContent
protected void writeSegmentContent(Generator generator, double formatVersion, Segment<AcmMetadata,AcmData> segment) throws IOException
Write one segment content (without XML wrapping).- Specified by:
writeSegmentContent
in classAbstractMessageWriter<AdmHeader,Segment<AcmMetadata,AcmData>,Acm>
- Parameters:
generator
- generator to use for producing outputformatVersion
- format version to usesegment
- segment to write- Throws:
IOException
- if any buffer writing operations fails
-
-