Class StateVector

  • All Implemented Interfaces:
    Section

    public class StateVector
    extends CommentsContainer
    Container for state vector data.
    Since:
    11.0
    Author:
    Luc Maisonobe
    • Constructor Detail

      • StateVector

        public StateVector()
        Create an empty data set.
    • 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 interface Section
        Overrides:
        validate in class CommentsContainer
        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