Package org.orekit.files.ccsds.ndm.odm
Class StateVector
java.lang.Object
org.orekit.files.ccsds.section.CommentsContainer
org.orekit.files.ccsds.ndm.odm.StateVector
- All Implemented Interfaces:
Section
Container for state vector data.
Beware that the Orekit getters and setters all rely on SI units. The parsers
and writers take care of converting these SI units into CCSDS mandatory units.
The Unit class provides useful
fromSi and
toSI methods in case the callers
already use CCSDS units instead of the API SI units. The general-purpose
Unit class (without an 's') and the
CCSDS-specific Units class
(with an 's') also provide some predefined units. These predefined units and the
fromSi and
toSI conversion methods are indeed
what the parsers and writers use for the conversions.
- Since:
- 11.0
- Author:
- Luc Maisonobe
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetEpoch()Get epoch of state vector, Keplerian elements and covariance matrix data.booleanCheck if state contains acceleration data.voidsetA(int index, double value) Set acceleration component.voidsetEpoch(AbsoluteDate epoch) Set epoch of state vector, Keplerian elements and covariance matrix data.voidsetP(int index, double value) Set position component.voidsetV(int index, double value) Set velocity component.Convert toTimeStampedPVCoordinates.voidvalidate(double version) Check is all mandatory entries have been initialized.Methods inherited from class org.orekit.files.ccsds.section.CommentsContainer
acceptComments, addComment, checkAllowed, checkNotNaN, checkNotNegative, checkNotNull, getComments, refuseFurtherComments, setComments
-
Constructor Details
-
StateVector
public StateVector()Create an empty data set.
-
-
Method Details
-
validate
public void validate(double version) Check is all mandatory entries have been initialized.This method should throw an exception if some mandatory entries are missing or not compatible with version number.
- Specified by:
validatein interfaceSection- Overrides:
validatein classCommentsContainer- Parameters:
version- format version
-
getEpoch
Get epoch of state vector, Keplerian elements and covariance matrix data.- Returns:
- epoch the epoch
-
setEpoch
Set epoch of state vector, Keplerian elements and covariance matrix data.- Parameters:
epoch- the epoch to be set
-
setP
public void setP(int index, double value) Set position component.- Parameters:
index- component index (counting from 0)value- position component
-
setV
public void setV(int index, double value) Set velocity component.- Parameters:
index- component index (counting from 0)value- velocity component
-
setA
public void setA(int index, double value) Set acceleration component.- Parameters:
index- component index (counting from 0)value- acceleration component
-
hasAcceleration
public boolean hasAcceleration()Check if state contains acceleration data.- Returns:
- true is state contains acceleration data
-
toTimeStampedPVCoordinates
Convert toTimeStampedPVCoordinates.- Returns:
- a new
TimeStampedPVCoordinates
-