Class TrajectoryState
java.lang.Object
org.orekit.files.ccsds.ndm.odm.ocm.TrajectoryState
- All Implemented Interfaces:
TimeStamped
Trajectory state entry.
- Since:
- 11.0
- Author:
- Luc Maisonobe
-
Constructor Summary
ConstructorsConstructorDescriptionTrajectoryState(OrbitElementsType type, AbsoluteDate date, double[] elements) Simple constructor.TrajectoryState(OrbitElementsType type, AbsoluteDate date, String[] fields, int first, List<Unit> units) Simple constructor. -
Method Summary
Modifier and TypeMethodDescriptionGet which derivatives of position are available in this state.getDate()Get the date.double[]Get trajectory elements.getType()Get the type of the elements.toCartesian(OneAxisEllipsoid body, double mu) Convert to Cartesian coordinates.Methods 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
-
Constructor Details
-
TrajectoryState
public TrajectoryState(OrbitElementsType type, AbsoluteDate date, String[] fields, int first, List<Unit> units) Simple constructor.- Parameters:
type- type of the elementsdate- entry datefields- trajectory elementsfirst- index of first field to consider when parsingunits- units to use for parsing
-
TrajectoryState
Simple constructor.- Parameters:
type- type of the elementsdate- entry dateelements- trajectory elements in SI units- Since:
- 12.0
-
-
Method Details
-
getDate
Get the date.- Specified by:
getDatein interfaceTimeStamped- Returns:
- date attached to the object
-
getElements
public double[] getElements()Get trajectory elements.- Returns:
- trajectory elements
-
getType
Get the type of the elements.- Returns:
- type of the elements
-
getAvailableDerivatives
Get which derivatives of position are available in this state.- Returns:
- a value indicating if the file contains velocity and/or acceleration
-
toCartesian
Convert to Cartesian coordinates.- Parameters:
body- central body (may be null iftypeis notOrbitElementsType.GEODETIC)mu- gravitational parameter in m³/s²- Returns:
- Cartesian coordinates
-