Package org.orekit.files.ccsds
Class OEMWriter
- java.lang.Object
-
- org.orekit.files.ccsds.OEMWriter
-
- All Implemented Interfaces:
EphemerisFileWriter
public class OEMWriter extends Object implements EphemerisFileWriter
An OEM Writer class that can take in a generalEphemerisFile
object and export it as a valid OEM file.- Since:
- 9.0
- Author:
- Hank Grabowski, Evan Ward
- See Also:
- CCSDS 502.0-B-2 Orbit Data
Messages,
CCSDS 500.0-G-3 Navigation
Data Definitions and Conventions,
StreamingOemWriter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OEMWriter.InterpolationMethod
OEM interpolation method.
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
write(Appendable writer, EphemerisFile ephemerisFile)
Write the passed inEphemerisFile
using the passed inAppendable
.-
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.general.EphemerisFileWriter
write
-
-
-
-
Field Detail
-
CCSDS_OEM_VERS
public static final String CCSDS_OEM_VERS
Version number implemented.- See Also:
- Constant Field Values
-
DEFAULT_INTERPOLATION_METHOD
public static final OEMWriter.InterpolationMethod DEFAULT_INTERPOLATION_METHOD
Default interpolation method if the user specifies none.
-
DEFAULT_ORIGINATOR
public static final String DEFAULT_ORIGINATOR
Default originator field value if user specifies none.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OEMWriter
public OEMWriter()
Standard default constructor that creates a writer with default configurations.
-
OEMWriter
public 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.- Parameters:
interpolationMethod
- The interpolation method to specify in the OEM fileoriginator
- The originator field stringspaceObjectId
- The spacecraft IDspaceObjectName
- The space object common name
-
-
Method Detail
-
write
public void write(Appendable writer, EphemerisFile ephemerisFile) throws IOException
Write the passed inEphemerisFile
using the passed inAppendable
.- Specified by:
write
in interfaceEphemerisFileWriter
- Parameters:
writer
- a configured Appendable to feed with textephemerisFile
- a populated ephemeris file to serialize into the buffer- Throws:
IOException
- 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.)
-
-