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:
OrbexParseInfo,SinexBiasParseInfo,SinexParseInfo
Transient data used for parsing a SINEX file.
- Since:
- 13.0
- Author:
- Luc Maisonobe
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PatternPattern for splitting blank separated lists. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Tbuild()Build the parsed file.protected AbsoluteDateGet creation date.protected AbsoluteDateGet end date.getLine()Get current line.intGet current line number.getName()Get name of data source.protected AbsoluteDateGet start date.Get time scale.protected TimeScalesGet time scales.doubleGet version number.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.intparseInt(int start, int length) Extract an integer from current line.parseString(int start, int length) Extract a string from current line.voidsetCreationDate(String dateString) Set creation date.voidsetEndDateIfLater(String candidateEndDateString) Set end date if later than previous setting.voidsetStartDateIfEarlier(String candidateStartDateString) Set start date if earlier than previous setting.voidsetTimeScale(TimeScale timeScale) Set time scale.voidsetVersion(double version) Set version number.protected AbsoluteDatestringEpochToAbsoluteDate(String stringDate, boolean isStart) Transform a String epoch to an AbsoluteDate.
-
Field Details
-
SPLIT_AT_BLANKS
Pattern for splitting blank separated lists.- Since:
- 14.0
-
-
Constructor Details
-
ParseInfo
Simple constructor.- Parameters:
timeScales- time scales
-
-
Method Details
-
getName
Get name of data source.- Returns:
- name of data source
-
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
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
-
getTimeScales
Get time scales.- Returns:
- time scales
-
getTimeScale
Get time scale.- Returns:
- time scale
- Since:
- 14.0
-
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
public 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
-