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
public class StateVector extends CommentsContainer
Container for state vector data.- Since:
- 11.0
- Author:
- Luc Maisonobe
-
-
Constructor Summary
Constructors Constructor Description StateVector()
Create an empty data set.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbsoluteDate
getEpoch()
Get epoch of state vector, Keplerian elements and covariance matrix data.boolean
hasAcceleration()
Check if state contains acceleration data.void
setA(int index, double value)
Set acceleration component.void
setEpoch(AbsoluteDate epoch)
Set epoch of state vector, Keplerian elements and covariance matrix data.void
setP(int index, double value)
Set position component.void
setV(int index, double value)
Set velocity component.TimeStampedPVCoordinates
toTimeStampedPVCoordinates()
Convert toTimeStampedPVCoordinates
.void
validate(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
-
-
-
-
Method Detail
-
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:
validate
in interfaceSection
- Overrides:
validate
in classCommentsContainer
- Parameters:
version
- format version
-
getEpoch
public AbsoluteDate getEpoch()
Get epoch of state vector, Keplerian elements and covariance matrix data.- Returns:
- epoch the epoch
-
setEpoch
public void setEpoch(AbsoluteDate epoch)
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
public TimeStampedPVCoordinates toTimeStampedPVCoordinates()
Convert toTimeStampedPVCoordinates
.- Returns:
- a new
TimeStampedPVCoordinates
-
-