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
Transient data used for parsing a SINEX file.
- Since:
- 13.0
- Author:
- Luc Maisonobe
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Tbuild()Build the parsed file.protected AbsoluteDateGet creation date.protected AbsoluteDateGet end date.protected StringgetName()Get name of data source.protected AbsoluteDateGet 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 Details
-
ParseInfo
Simple constructor.- Parameters:
timeScales- time scales
-
-
Method Details
-
getName
Get name of data source.- Returns:
- name of data source
-
setCreationDate
Set creation date.- Parameters:
dateString- creation date
-
getCreationDate
Get creation date.- Returns:
- creation date
-
setStartDateIfEarlier
Set start date if earlier than previous setting.- Parameters:
candidateStartDateString- candidate start date
-
getStartDate
Get start date.- Returns:
- start date
-
setEndDateIfLater
Set end date if later than previous setting.- Parameters:
candidateEndDateString- end date
-
getEndDate
Get end date.- Returns:
- end date
-
setTimeScale
Set time scale.- Parameters:
timeScale- time scale
-
build
Build the parsed file.- Returns:
- built parsed file
-
parseString
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
Transform a String epoch to an AbsoluteDate.- Parameters:
stringDate- string epochisStart- true if epoch is a start validity epoch- Returns:
- the corresponding AbsoluteDate
-