Class ParseInfo<T extends AbstractSinex>

java.lang.Object
org.orekit.files.sinex.ParseInfo<T>
Type Parameters:
T - type of the SINEX files
Direct Known Subclasses:
OrbexParseInfo, 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
  • Field Details

    • SPLIT_AT_BLANKS

      public static final Pattern SPLIT_AT_BLANKS
      Pattern for splitting blank separated lists.
      Since:
      14.0
  • Constructor Details

    • ParseInfo

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

    • getName

      public String getName()
      Get name of data source.
      Returns:
      name of data source
    • getLine

      public String getLine()
      Get current line.
      Returns:
      current line
    • getLineNumber

      public int getLineNumber()
      Get current line number.
      Returns:
      current line number
    • setVersion

      public void setVersion(double version)
      Set version number.
      Parameters:
      version - version number
      Since:
      14.0
    • getVersion

      public double getVersion()
      Get version number.
      Returns:
      version number
    • setCreationDate

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

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

      public 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

      public 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

      public void setTimeScale(TimeScale timeScale)
      Set time scale.
      Parameters:
      timeScale - time scale
    • getTimeScales

      protected TimeScales getTimeScales()
      Get time scales.
      Returns:
      time scales
    • getTimeScale

      public TimeScale getTimeScale()
      Get time scale.
      Returns:
      time scale
      Since:
      14.0
    • build

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

      public 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

      public 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