Package org.orekit.files.sinex
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:
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 Summary
Constructors Modifier Constructor Description protectedParseInfo(TimeScales timeScales)Simple constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract Tbuild()Build the parsed file.protected AbsoluteDategetCreationDate()Get creation date.protected AbsoluteDategetEndDate()Get end date.protected StringgetName()Get name of data source.protected AbsoluteDategetStartDate()Get start date.protected doubleparseDouble(int start, int length)Extract a double from current line.protected doubleparseDoubleWithUnit(int startUnit, int lengthUnit, int startDouble, int lengthDouble)Extract a double from current line and convert in SI unit.protected intparseInt(int start, int length)Extract an integer from current line.protected StringparseString(int start, int length)Extract a string from current line.protected voidsetCreationDate(String dateString)Set creation date.protected voidsetEndDateIfLater(String candidateEndDateString)Set end date if later than previous setting.protected voidsetStartDateIfEarlier(String candidateStartDateString)Set start date if earlier than previous setting.protected voidsetTimeScale(TimeScale timeScale)Set time scale.protected AbsoluteDatestringEpochToAbsoluteDate(String stringDate, boolean isStart)Transform a String epoch to an AbsoluteDate.
-
-
-
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 stringlength- 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 reallength- 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 reallength- 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 unitlengthUnit- length of the unitstartDouble- start index of the reallengthDouble- 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 epochisStart- true if epoch is a start validity epoch- Returns:
- the corresponding AbsoluteDate
-
-