Class TDMFile.ObservationsBlock

  • Enclosing class:
    TDMFile

    public static class TDMFile.ObservationsBlock
    extends Object
    The Observations Block class contain metadata and the list of observation data lines.

    The reason for which the observations have been separated into blocks is that the different data blocks in a TDM file usually refers to different types of observations.

    An observation block contains a TDM metadata object and a list of observations.

    At this level, an observation is not an Orekit object, it is a custom object containing:

    - a keyword, the type of the observation;

    - a timetag, the date of the observation;

    - a measurement, the value of the observation.

    Author:
    Maxime Journot
    • Constructor Detail

      • ObservationsBlock

        public ObservationsBlock()
        ObservationsBlock constructor.
    • Method Detail

      • getObservations

        public List<TDMFile.Observation> getObservations()
        Get the list of Observations data lines.
        Returns:
        a reference to the internal list of Observations data lines
      • setObservations

        public void setObservations​(List<TDMFile.Observation> observations)
        Set the list of Observations Data Lines.
        Parameters:
        observations - the list of Observations Data Lines to set
      • addObservation

        public void addObservation​(TDMFile.Observation observation)
        Adds an observation data line.
        Parameters:
        observation - the observation to add to the list
      • addObservation

        public void addObservation​(String keyword,
                                   AbsoluteDate epoch,
                                   double measurement)
        Adds an observation data line.
        Parameters:
        keyword - the keyword
        epoch - the timetag
        measurement - the measurement
      • getMetaData

        public TDMFile.TDMMetaData getMetaData()
        Get the meta-data for the block.
        Returns:
        meta-data for the block
      • setMetaData

        public void setMetaData​(TDMFile.TDMMetaData metaData)
        Set the meta-data for the block.
        Parameters:
        metaData - the meta-data to set
      • getObservationsComment

        public List<String> getObservationsComment()
        Get the observations data lines comment.
        Returns:
        the comment
      • setObservationsComment

        public void setObservationsComment​(List<String> observationsComment)
        Set the observations data lines comment.
        Parameters:
        observationsComment - the comment to be set
      • addObservationComment

        public void addObservationComment​(String observationComment)
        Add an observation data line comment.
        Parameters:
        observationComment - the comment line to add