public class AEMWriter extends Object implements AttitudeEphemerisFileWriter
Constructor and Description |
---|
AEMWriter()
Standard default constructor that creates a writer with default configurations
including
Default formatting . |
AEMWriter(String originator,
String spaceObjectId,
String spaceObjectName)
Constructor used to create a new AEM writer configured with the necessary parameters
to successfully fill in all required fields that aren't part of a standard object
and using
default formatting
for attitude ephemeris data output. |
AEMWriter(String originator,
String spaceObjectId,
String spaceObjectName,
String attitudeFormat)
Constructor used to create a new AEM writer configured with the necessary
parameters to successfully fill in all required fields that aren't part
of a standard object and user-defined attitude ephemeris data output format.
|
Modifier and Type | Method and Description |
---|---|
void |
write(Appendable writer,
AEMFile aemFile)
Write the passed in
AEMFile using the passed in Appendable . |
void |
write(Appendable writer,
AttitudeEphemerisFile ephemerisFile)
Write the passed in
AttitudeEphemerisFile using the passed in
Appendable . |
void |
write(String outputFilePath,
AEMFile aemFile)
Write the passed in
AEMFile to a file at the output path specified. |
public AEMWriter()
Default formatting
.public AEMWriter(String originator, String spaceObjectId, String spaceObjectName)
default formatting
for attitude ephemeris data output.originator
- the originator field stringspaceObjectId
- the spacecraft IDspaceObjectName
- the space object common namepublic AEMWriter(String originator, String spaceObjectId, String spaceObjectName, String attitudeFormat)
originator
- the originator field stringspaceObjectId
- the spacecraft IDspaceObjectName
- the space object common nameattitudeFormat
- format parameters
for
attitude ephemeris data outputpublic void write(Appendable writer, AttitudeEphemerisFile ephemerisFile) throws IOException
AttitudeEphemerisFile
using the passed in
Appendable
.write
in interface AttitudeEphemerisFileWriter
writer
- a configured Appendable to feed with textephemerisFile
- a populated ephemeris file to serialize into the bufferIOException
- if any buffer writing operations fail or if the underlying
format doesn't support a configuration in the EphemerisFile
(for example having multiple satellites in one file, having
the origin at an unspecified celestial body, etc.)public void write(Appendable writer, AEMFile aemFile) throws IOException
AEMFile
using the passed in Appendable
.writer
- a configured Appendable to feed with textaemFile
- a populated aem file to serialize into the bufferIOException
- if any buffer writing operations fail or if the underlying
format doesn't support a configuration in the EphemerisFile
for example having multiple satellites in one file, having
the origin at an unspecified celestial body, etc.)public void write(String outputFilePath, AEMFile aemFile) throws IOException
AEMFile
to a file at the output path specified.outputFilePath
- a file path that the corresponding file will be written toaemFile
- a populated aem file to serialize into the bufferIOException
- if any file writing operations fail or if the underlying
format doesn't support a configuration in the EphemerisFile
(for example having multiple satellites in one file, having
the origin at an unspecified celestial body, etc.)Copyright © 2002-2020 CS GROUP. All rights reserved.