public class OEMWriter extends Object implements EphemerisFileWriter
EphemerisFile object
and export it as a valid OEM file.StreamingOemWriter| Modifier and Type | Class and Description |
|---|---|
static class |
OEMWriter.InterpolationMethod
OEM interpolation method.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
CCSDS_OEM_VERS
Version number implemented.
|
static OEMWriter.InterpolationMethod |
DEFAULT_INTERPOLATION_METHOD
Default interpolation method if the user specifies none.
|
static String |
DEFAULT_ORIGINATOR
Default originator field value if user specifies none.
|
| Constructor and Description |
|---|
OEMWriter()
Standard default constructor that creates a writer with default
configurations.
|
OEMWriter(OEMWriter.InterpolationMethod interpolationMethod,
String originator,
String spaceObjectId,
String spaceObjectName)
Constructor used to create a new OEM writer configured with the necessary
parameters to successfully fill in all required fields that aren't part
of a standard
EphemerisFile object and using default formatting for
position and
velocity ephemeris data output. |
OEMWriter(OEMWriter.InterpolationMethod interpolationMethod,
String originator,
String spaceObjectId,
String spaceObjectName,
String positionFormat,
String velocityFormat)
Constructor used to create a new OEM writer configured with the necessary
parameters to successfully fill in all required fields that aren't part
of a standard
EphemerisFile object and user-defined position and
velocity ephemeris data output format. |
| Modifier and Type | Method and Description |
|---|---|
void |
write(Appendable writer,
EphemerisFile ephemerisFile)
Write the passed in
EphemerisFile using the passed in
Appendable. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwritepublic static final String CCSDS_OEM_VERS
public static final OEMWriter.InterpolationMethod DEFAULT_INTERPOLATION_METHOD
public static final String DEFAULT_ORIGINATOR
public OEMWriter()
public OEMWriter(OEMWriter.InterpolationMethod interpolationMethod, String originator, String spaceObjectId, String spaceObjectName)
EphemerisFile object and using default formatting for
position and
velocity ephemeris data output.interpolationMethod - the interpolation method to specify in the OEM fileoriginator - the originator field stringspaceObjectId - the spacecraft IDspaceObjectName - the space object common namepublic OEMWriter(OEMWriter.InterpolationMethod interpolationMethod, String originator, String spaceObjectId, String spaceObjectName, String positionFormat, String velocityFormat)
EphemerisFile object and user-defined position and
velocity ephemeris data output format.interpolationMethod - the interpolation method to specify in the OEM fileoriginator - the originator field stringspaceObjectId - the spacecraft IDspaceObjectName - the space object common namepositionFormat - format parameters for position ephemeris data outputvelocityFormat - format parameters for velocity ephemeris data outputpublic void write(Appendable writer, EphemerisFile ephemerisFile) throws IOException
EphemerisFile using the passed in
Appendable.write in interface EphemerisFileWriterwriter - 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.)Copyright © 2002-2021 CS GROUP. All rights reserved.