Class Opm
java.lang.Object
org.orekit.files.ccsds.ndm.NdmConstituent<OdmHeader,Segment<OdmCommonMetadata,OpmData>>
org.orekit.files.ccsds.ndm.odm.opm.Opm
- All Implemented Interfaces:
TimeStamped
public class Opm
extends NdmConstituent<OdmHeader,Segment<OdmCommonMetadata,OpmData>>
implements TimeStamped
This class gathers the informations present in the Orbital Parameter Message (OPM).
- Since:
- 6.1
- Author:
- sports
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOpm(OdmHeader header, List<Segment<OdmCommonMetadata, OpmData>> segments, IERSConventions conventions, DataContext dataContext, double mu) Simple constructor. -
Method Summary
Modifier and TypeMethodDescriptionGenerate a Cartesian orbit.Generate a keplerian orbit.Generate spacecraft state from theCartesianOrbitgenerated by generateCartesianOrbit.getData()Get the file data.getDate()Get the date.getManeuver(int index) Get a maneuver.Get a list of all maneuvers.Get the file metadata.intGet the number of maneuvers present in the OPM.Get the position/velocity coordinates contained in the OPM.booleancheck whether the OPM contains at least one maneuver.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
-
Opm
public Opm(OdmHeader header, List<Segment<OdmCommonMetadata, OpmData>> segments, IERSConventions conventions, DataContext dataContext, double mu) Simple constructor.- Parameters:
header- file headersegments- file segmentsconventions- IERS conventionsdataContext- used for creating frames, time scales, etc.mu- gravitational coefficient to use for building Cartesian/Keplerian orbits
-
-
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
-
getNbManeuvers
public int getNbManeuvers()Get the number of maneuvers present in the OPM.- Returns:
- the number of maneuvers
-
getManeuvers
Get a list of all maneuvers.- Returns:
- unmodifiable list of all maneuvers.
-
getManeuver
Get a maneuver.- Parameters:
index- maneuver index, counting from 0- Returns:
- maneuver
-
hasManeuvers
public boolean hasManeuvers()check whether the OPM contains at least one maneuver.- Returns:
- true if OPM contains at least one maneuver false otherwise
-
getPVCoordinates
Get the position/velocity coordinates contained in the OPM.- Returns:
- the position/velocity coordinates contained in the OPM
-
generateCartesianOrbit
Generate a Cartesian orbit.- Returns:
- generated orbit
-
generateKeplerianOrbit
Generate a keplerian orbit.- Returns:
- generated orbit
-
generateSpacecraftState
Generate spacecraft state from theCartesianOrbitgenerated by generateCartesianOrbit.- Returns:
- the spacecraft state of the OPM
-