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 @{link EphemerisFile} object.
|
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, wait
write
public 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)
interpolationMethod
- The interpolation method to specify in the OEM fileoriginator
- The originator field stringspaceObjectId
- The spacecraft IDspaceObjectName
- The space object common namepublic void write(Appendable writer, EphemerisFile ephemerisFile) throws OrekitException, IOException
EphemerisFile
using the passed in
Appendable
.write
in interface EphemerisFileWriter
writer
- a configured Appendable to feed with textephemerisFile
- a populated ephemeris file to serialize into the bufferOrekitException
- if any necessary computation or lookup can't be performedIOException
- 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-2017 CS Systèmes d'information. All rights reserved.