Class StateVector

  • All Implemented Interfaces:
    Section

    public class StateVector
    extends CommentsContainer
    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 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