Class Omm
java.lang.Object
org.orekit.files.ccsds.ndm.NdmConstituent<OdmHeader,Segment<OmmMetadata,OmmData>>
org.orekit.files.ccsds.ndm.odm.omm.Omm
- All Implemented Interfaces:
TimeStamped
public class Omm
extends NdmConstituent<OdmHeader,Segment<OmmMetadata,OmmData>>
implements TimeStamped
This class gathers the informations present in the Orbital Mean-Elements Message (OMM).
- Since:
- 6.1
- Author:
- sports
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOmm(OdmHeader header, List<Segment<OmmMetadata, OmmData>> segments, IERSConventions conventions, DataContext dataContext) Simple constructor. -
Method Summary
Modifier and TypeMethodDescriptionGenerate a keplerian orbit.Generate spacecraft state from theCartesianOrbitgenerated by generateCartesianOrbit.Generate TLE from OMM file.getData()Get the file data.getDate()Get the date.Get the file metadata.Methods inherited from class org.orekit.files.ccsds.ndm.NdmConstituent
getConventions, getDataContext, getHeader, getSegments, setHeader, setSegments, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.orekit.time.TimeStamped
durationFrom
-
Field Details
-
ROOT
Root element for XML files.- See Also:
-
FORMAT_VERSION_KEY
Key for format version.- See Also:
-
-
Constructor Details
-
Omm
public Omm(OdmHeader header, List<Segment<OmmMetadata, OmmData>> segments, IERSConventions conventions, DataContext dataContext) Simple constructor.- Parameters:
header- file headersegments- file segmentsconventions- IERS conventionsdataContext- used for creating frames, time scales, etc.
-
-
Method Details
-
getMetadata
Get the file metadata.- Returns:
- file metadata
-
getData
Get the file data.- Returns:
- file data
-
getDate
Get the date.- Specified by:
getDatein interfaceTimeStamped- Returns:
- date attached to the object
-
generateKeplerianOrbit
Generate a keplerian orbit.- Returns:
- generated orbit
-
generateSpacecraftState
Generate spacecraft state from theCartesianOrbitgenerated by generateCartesianOrbit. Raises an exception if OPM doesn't contain spacecraft mass information.- Returns:
- the spacecraft state of the OPM
-
generateTLE
Generate TLE from OMM file. Launch Year, Launch Day and Launch Piece are not present in the OMM file, they have to be set manually by the user with the AdditionalData static class.- Returns:
- the tle
-