Class TrajectoryState
- java.lang.Object
-
- org.orekit.files.ccsds.ndm.odm.ocm.TrajectoryState
-
- All Implemented Interfaces:
TimeStamped
public class TrajectoryState extends Object implements TimeStamped
Trajectory state entry.- Since:
- 11.0
- Author:
- Luc Maisonobe
-
-
Constructor Summary
Constructors Constructor Description TrajectoryState(ElementsType type, AbsoluteDate date, String[] fields, int first, List<Unit> units)
Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CartesianDerivativesFilter
getAvailableDerivatives()
Get which derivatives of position are available in this state.AbsoluteDate
getDate()
Get the date.double[]
getElements()
Get trajectory elements.ElementsType
getType()
Get the type of the elements.TimeStampedPVCoordinates
toCartesian(double mu)
Convert to Cartesian coordinates.
-
-
-
Constructor Detail
-
TrajectoryState
public TrajectoryState(ElementsType 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 considerunits
- units to use for parsing
-
-
Method Detail
-
getDate
public AbsoluteDate getDate()
Get the date.- Specified by:
getDate
in interfaceTimeStamped
- Returns:
- date attached to the object
-
getElements
public double[] getElements()
Get trajectory elements.- Returns:
- trajectory elements
-
getType
public ElementsType getType()
Get the type of the elements.- Returns:
- type of the elements
-
getAvailableDerivatives
public CartesianDerivativesFilter getAvailableDerivatives()
Get which derivatives of position are available in this state.- Returns:
- a value indicating if the file contains velocity and/or acceleration
-
toCartesian
public TimeStampedPVCoordinates toCartesian(double mu)
Convert to Cartesian coordinates.- Parameters:
mu
- gravitational parameter in m³/s²- Returns:
- Cartesian coordinates
-
-