Class ParseInfo
- java.lang.Object
-
- org.orekit.files.rinex.navigation.parsers.ParseInfo
-
public class ParseInfo extends Object
Container for parsing data.- Since:
- 14.0
- Author:
- Bryan Cazabonne, Luc Maisonobe
-
-
Constructor Summary
Constructors Constructor Description ParseInfo(String name, TimeScales timeScales)Constructor, build the ParseInfo object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclosePendingRecord()Ensure navigation record has been closed.RinexNavigationgetCompletedFile()Get the completed file.RinexNavigationHeadergetHeader()Get the navigation file header.StringgetLine()Get the current line.intgetLineNumber()Get the line number.StringgetName()Get the file name.intgetRecordLineNumber()Get the line number within the navigation record.RecordLineParsergetRecordLineParser()Get the message line parser.TimeScalesgetTimeScales()Get the time scales.voidparseComment()Parse a comment.AbsoluteDateparseDate(SatelliteSystem system)Parse a date.AbsoluteDateparseDate(TimeScale timeScale)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.intparseInt1()Parse field 1 of a message line.intparseInt2()Parse field 2 of a message line.intparseInt3()Parse field 3 of a message line.intparseInt4()Parse field 4 of a message line.voidparseRecordLine()Parse 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.voidsetLine(String line)set 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 Detail
-
ParseInfo
public ParseInfo(String name, TimeScales timeScales)
Constructor, build the ParseInfo object.- Parameters:
name- name of the data sourcetimeScales- set of time scales for parsing dates
-
-
Method Detail
-
parseDate
public AbsoluteDate parseDate(SatelliteSystem system)
Parse a date.- Parameters:
system- satellite system- Returns:
- parsed date
- Since:
- 14.0
-
parseDate
public AbsoluteDate parseDate(TimeScale timeScale)
Parse a date.- Parameters:
timeScale- time scale- Returns:
- parsed date
- Since:
- 14.0
-
parseDouble1
public double parseDouble1(Unit unit)
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
public double parseDouble2(Unit unit)
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
public double parseDouble3(Unit unit)
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
public double parseDouble4(Unit unit)
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
public String getName()
Get the file name.- Returns:
- file name
-
getTimeScales
public TimeScales getTimeScales()
Get the time scales.- Returns:
- time scales
-
getCompletedFile
public RinexNavigation getCompletedFile()
Get the completed file.- Returns:
- completed file
-
getHeader
public RinexNavigationHeader 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
public String getLine()
Get the current line.- Returns:
- current line
-
setLine
public void setLine(String line)
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
-
setRecordLineParser
public void setRecordLineParser(RecordType recordType)
Set the record line parser.- Parameters:
recordType- retord type
-
setRecordLineParser
public void setRecordLineParser(RecordType recordType, SatelliteSystem system, int prn, String messageType, String subType)
Set the record line parser.- Parameters:
recordType- retord typesystem- satellite systemprn- satellite numbermessageType- message typesubType- subtype
-
getRecordLineParser
public RecordLineParser getRecordLineParser()
Get the message line parser.- Returns:
- message line parser
-
parseRecordLine
public void parseRecordLine()
Parse next record line.
-
setIonosphericCorrectionType
public void setIonosphericCorrectionType(IonosphericCorrectionType ionosphericCorrectionType)
Set the ionospheric correction type.- Parameters:
ionosphericCorrectionType- ionospheric correction type- Since:
- 14.0
-
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
-
-