Class ParseInfo<T extends AbstractSinex>

  • Type Parameters:
    T - type of the SINEX files
    Direct Known Subclasses:
    SinexBiasParseInfo, SinexParseInfo

    public abstract class ParseInfo<T extends AbstractSinex>
    extends Object
    Transient data used for parsing a SINEX file.
    Since:
    13.0
    Author:
    Luc Maisonobe
    • Constructor Detail

      • ParseInfo

        protected ParseInfo​(TimeScales timeScales)
        Simple constructor.
        Parameters:
        timeScales - time scales
    • Method Detail

      • getName

        protected String getName()
        Get name of data source.
        Returns:
        name of data source
      • setCreationDate

        protected void setCreationDate​(String dateString)
        Set creation date.
        Parameters:
        dateString - creation date
      • getCreationDate

        protected AbsoluteDate getCreationDate()
        Get creation date.
        Returns:
        creation date
      • setStartDateIfEarlier

        protected void setStartDateIfEarlier​(String candidateStartDateString)
        Set start date if earlier than previous setting.
        Parameters:
        candidateStartDateString - candidate start date
      • getStartDate

        protected AbsoluteDate getStartDate()
        Get start date.
        Returns:
        start date
      • setEndDateIfLater

        protected void setEndDateIfLater​(String candidateEndDateString)
        Set end date if later than previous setting.
        Parameters:
        candidateEndDateString - end date
      • getEndDate

        protected AbsoluteDate getEndDate()
        Get end date.
        Returns:
        end date
      • setTimeScale

        protected void setTimeScale​(TimeScale timeScale)
        Set time scale.
        Parameters:
        timeScale - time scale
      • build

        protected abstract T build()
        Build the parsed file.
        Returns:
        built parsed file
      • parseString

        protected String parseString​(int start,
                                     int length)
        Extract a string from current line.
        Parameters:
        start - start index of the string
        length - length of the string
        Returns:
        parsed string
      • parseDouble

        protected double parseDouble​(int start,
                                     int length)
        Extract a double from current line.
        Parameters:
        start - start index of the real
        length - length of the real
        Returns:
        parsed real
      • parseInt

        protected int parseInt​(int start,
                               int length)
        Extract an integer from current line.
        Parameters:
        start - start index of the real
        length - length of the real
        Returns:
        parsed integer
      • parseDoubleWithUnit

        protected double parseDoubleWithUnit​(int startUnit,
                                             int lengthUnit,
                                             int startDouble,
                                             int lengthDouble)
        Extract a double from current line and convert in SI unit.
        Parameters:
        startUnit - start index of the unit
        lengthUnit - length of the unit
        startDouble - start index of the real
        lengthDouble - length of the real
        Returns:
        parsed double in SI unit
      • stringEpochToAbsoluteDate

        protected AbsoluteDate stringEpochToAbsoluteDate​(String stringDate,
                                                         boolean isStart)
        Transform a String epoch to an AbsoluteDate.
        Parameters:
        stringDate - string epoch
        isStart - true if epoch is a start validity epoch
        Returns:
        the corresponding AbsoluteDate