Class ParseInfo
java.lang.Object
org.orekit.files.rinex.navigation.parsers.ParseInfo
Container for parsing data.
- Since:
- 14.0
- Author:
- Bryan Cazabonne, Luc Maisonobe
-
Constructor Summary
ConstructorsConstructorDescriptionParseInfo(String name, TimeScales timeScales) Constructor, build the ParseInfo object. -
Method Summary
Modifier and TypeMethodDescriptionvoidEnsure navigation record has been closed.Get the completed file.Get the navigation file header.getLine()Get the current line.intGet the line number.getName()Get the file name.intGet the line number within the navigation record.Get the message line parser.Get the time scales.voidParse a comment.parseDate(SatelliteSystem system) Parse a date.Parse a date.doubleparseDouble1(Unit unit) Parse field 1 of a message line.doubleparseDouble2(Unit unit) Parse field 2 of a message line.doubleparseDouble3(Unit unit) Parse field 3 of a message line.doubleparseDouble4(Unit unit) Parse field 4 of a message line.intParse field 1 of a message line.intParse field 2 of a message line.intParse field 3 of a message line.intParse field 4 of a message line.voidParse next record line.voidsetHeaderParsed(boolean headerParsed) Set the header parsing indicator.voidsetInitialSpaces(int initialSpaces) Set the number of initial spaces in messages lines.voidsetIonosphericCorrectionType(IonosphericCorrectionType ionosphericCorrectionType) Set the ionospheric correction type.voidsetKlobucharAlpha(double[] klobucharAlpha) Set the α ionospheric parameters.voidsetKlobucharBeta(double[] klobucharBeta) Set the β ionospheric parameters.voidset the current line.voidsetNeQuickAlpha(double[] neQuickAlpha) Set the α ionospheric parameters.voidsetRecordLineParser(RecordType recordType) Set the record line parser.voidsetRecordLineParser(RecordType recordType, SatelliteSystem system, int prn, String messageType, String subType) Set the record line parser.voidsetTimeMark(char timeMark) Set the ionospheric correction time mark.
-
Constructor Details
-
ParseInfo
Constructor, build the ParseInfo object.- Parameters:
name- name of the data sourcetimeScales- set of time scales for parsing dates
-
-
Method Details
-
parseDate
Parse a date.- Parameters:
system- satellite system- Returns:
- parsed date
- Since:
- 14.0
-
parseDate
Parse a date.- Parameters:
timeScale- time scale- Returns:
- parsed date
- Since:
- 14.0
-
parseDouble1
Parse field 1 of a message line.- Parameters:
unit- unit to apply- Returns:
- parsed field
- Since:
- 14.0
-
parseInt1
public int parseInt1()Parse field 1 of a message line.- Returns:
- parsed field
- Since:
- 14.0
-
parseDouble2
Parse field 2 of a message line.- Parameters:
unit- unit to apply- Returns:
- parsed field
- Since:
- 14.0
-
parseInt2
public int parseInt2()Parse field 2 of a message line.- Returns:
- parsed field
- Since:
- 14.0
-
parseDouble3
Parse field 3 of a message line.- Parameters:
unit- unit to apply- Returns:
- parsed field
- Since:
- 14.0
-
parseInt3
public int parseInt3()Parse field 3 of a message line.- Returns:
- parsed field
- Since:
- 14.0
-
parseDouble4
Parse field 4 of a message line.- Parameters:
unit- unit to apply- Returns:
- parsed field
- Since:
- 14.0
-
parseInt4
public int parseInt4()Parse field 4 of a message line.- Returns:
- parsed field
- Since:
- 14.0
-
parseComment
public void parseComment()Parse a comment. -
closePendingRecord
public void closePendingRecord()Ensure navigation record has been closed. -
getName
Get the file name.- Returns:
- file name
-
getTimeScales
Get the time scales.- Returns:
- time scales
-
getCompletedFile
Get the completed file.- Returns:
- completed file
-
getHeader
Get the navigation file header.- Returns:
- navigation file header
-
setHeaderParsed
public void setHeaderParsed(boolean headerParsed) Set the header parsing indicator.- Parameters:
headerParsed- if true, header has been parsed
-
setInitialSpaces
public void setInitialSpaces(int initialSpaces) Set the number of initial spaces in messages lines.- Parameters:
initialSpaces- number of initial spaces in messages lines
-
getLine
Get the current line.- Returns:
- current line
-
setLine
set the current line.- Parameters:
line- current line
-
getLineNumber
public int getLineNumber()Get the line number.- Returns:
- line number
-
getRecordLineNumber
public int getRecordLineNumber()Get the line number within the navigation record.- Returns:
- line number within the navigation record
-
getRecordLineParser
Get the message line parser.- Returns:
- message line parser
-
parseRecordLine
public void parseRecordLine()Parse next record line. -
setTimeMark
public void setTimeMark(char timeMark) Set the ionospheric correction time mark.- Parameters:
timeMark- ionospheric correction time mark- Since:
- 14.0
-
setKlobucharAlpha
public void setKlobucharAlpha(double[] klobucharAlpha) Set the α ionospheric parameters.- Parameters:
klobucharAlpha- the α ionospheric parameters to set
-
setKlobucharBeta
public void setKlobucharBeta(double[] klobucharBeta) Set the β ionospheric parameters.- Parameters:
klobucharBeta- the β ionospheric parameters to set
-
setNeQuickAlpha
public void setNeQuickAlpha(double[] neQuickAlpha) Set the α ionospheric parameters.- Parameters:
neQuickAlpha- the α ionospheric parameters to set
-