public class StateVector extends CommentsContainer
Constructor and Description |
---|
StateVector()
Create an empty data set.
|
Modifier and Type | Method and 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 to
TimeStampedPVCoordinates . |
void |
validate(double version)
Check is all mandatory entries have been initialized.
|
acceptComments, addComment, checkAllowed, checkNotNaN, checkNotNegative, checkNotNull, getComments, refuseFurtherComments
public void validate(double version)
This method should throw an exception if some mandatory entries are missing or not compatible with version number.
validate
in interface Section
validate
in class CommentsContainer
version
- format versionpublic AbsoluteDate getEpoch()
public void setEpoch(AbsoluteDate epoch)
epoch
- the epoch to be setpublic void setP(int index, double value)
index
- component index (counting from 0)value
- position componentpublic void setV(int index, double value)
index
- component index (counting from 0)value
- velocity componentpublic void setA(int index, double value)
index
- component index (counting from 0)value
- acceleration componentpublic boolean hasAcceleration()
public TimeStampedPVCoordinates toTimeStampedPVCoordinates()
TimeStampedPVCoordinates
.TimeStampedPVCoordinates
Copyright © 2002-2022 CS GROUP. All rights reserved.