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 Modifier and Type Field Description static StringFORMAT_VERSION_KEYKey for format version.static StringROOTRoot element for XML files.
-
Constructor Summary
Constructors Constructor Description Omm(OdmHeader header, List<Segment<OmmMetadata,OmmData>> segments, IERSConventions conventions, DataContext dataContext)Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeplerianOrbitgenerateKeplerianOrbit()Generate a keplerian orbit.SpacecraftStategenerateSpacecraftState()Generate spacecraft state from theCartesianOrbitgenerated by generateCartesianOrbit.TLEgenerateTLE()Generate TLE from OMM file.OmmDatagetData()Get the file data.AbsoluteDategetDate()Get the date.OmmMetadatagetMetadata()Get the file metadata.-
Methods inherited from class org.orekit.files.ccsds.ndm.NdmConstituent
getConventions, getDataContext, getHeader, getSegments, setHeader, setSegments, validate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.orekit.time.TimeStamped
durationFrom
-
-
-
-
Field Detail
-
ROOT
public static final String ROOT
Root element for XML files.- See Also:
- Constant Field Values
-
FORMAT_VERSION_KEY
public static final String FORMAT_VERSION_KEY
Key for format version.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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 Detail
-
getMetadata
public OmmMetadata getMetadata()
Get the file metadata.- Returns:
- file metadata
-
getData
public OmmData getData()
Get the file data.- Returns:
- file data
-
getDate
public AbsoluteDate getDate()
Get the date.- Specified by:
getDatein interfaceTimeStamped- Returns:
- date attached to the object
-
generateKeplerianOrbit
public KeplerianOrbit generateKeplerianOrbit()
Generate a keplerian orbit.- Returns:
- generated orbit
-
generateSpacecraftState
public SpacecraftState 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
public TLE 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
-
-