public class OemParser extends OdmParser<Oem,OemParser> implements EphemerisFileParser<Oem>
Note than starting with Orekit 11.0, CCSDS message parsers are
mutable objects that gather the data being parsed, until the
message is complete and the parseMessage
method has returned. This implies that parsers
should not be used in a multi-thread context. The recommended
way to use parsers is to either dedicate one parser for each message
and drop it afterwards, or to use a single-thread loop.
Constructor and Description |
---|
OemParser(IERSConventions conventions,
boolean simpleEOP,
DataContext dataContext,
AbsoluteDate missionReferenceDate,
double mu,
int defaultInterpolationDegree,
ParsedUnitsBehavior parsedUnitsBehavior)
Complete constructor.
|
Modifier and Type | Method and Description |
---|---|
Oem |
build()
Build the file from parsed entries.
|
boolean |
finalizeData()
Finalize data after parsing.
|
boolean |
finalizeHeader()
Finalize header after parsing.
|
boolean |
finalizeMetadata()
Finalize metadata after parsing.
|
Header |
getHeader()
Get file header to fill.
|
boolean |
inData()
Acknowledge data parsing has started.
|
boolean |
inHeader()
Acknowledge header parsing has started.
|
boolean |
inMetadata()
Acknowledge metada parsing has started.
|
Oem |
parse(DataSource source)
Parse an ephemeris file from a data source.
|
boolean |
prepareData()
Prepare data for parsing.
|
boolean |
prepareHeader()
Prepare header for parsing.
|
boolean |
prepareMetadata()
Prepare metadata for parsing.
|
void |
reset(FileFormat fileFormat)
Reset parser to initial state before parsing.
|
getMissionReferenceDate, getMuSet, getSelectedMu, setMuCreated, setMuParsed
getConventions, getDataContext, getParsedUnitsBehavior, isSimpleEOP
anticipateNext, getCurrent, getFileFormat, getFormatVersionKey, getSpecialXmlElementsBuilders, parseMessage, process, reset, setEndTagSeen, setFallback, wasEndTagSeen
public OemParser(IERSConventions conventions, boolean simpleEOP, DataContext dataContext, AbsoluteDate missionReferenceDate, double mu, int defaultInterpolationDegree, ParsedUnitsBehavior parsedUnitsBehavior)
Calling this constructor directly is not recommended. Users should rather use
parserBuilder.buildOemParser()
.
conventions
- IERS ConventionssimpleEOP
- if true, tidal effects are ignored when interpolating EOPdataContext
- used to retrieve frames, time scales, etc.missionReferenceDate
- reference date for Mission Elapsed Time or Mission Relative Time time systems
(may be null if time system is absolute)mu
- gravitational coefficientdefaultInterpolationDegree
- default interpolation degreeparsedUnitsBehavior
- behavior to adopt for handling parsed unitspublic Oem parse(DataSource source)
parse
in interface EphemerisFileParser<Oem>
source
- source providing the data to parsepublic Header getHeader()
getHeader
in class AbstractConstituentParser<Oem,OemParser>
public void reset(FileFormat fileFormat)
reset
in interface MessageParser<Oem>
fileFormat
- format of the file ready to be parsedpublic boolean prepareHeader()
prepareHeader
in class AbstractConstituentParser<Oem,OemParser>
public boolean inHeader()
inHeader
in class AbstractConstituentParser<Oem,OemParser>
public boolean finalizeHeader()
finalizeHeader
in class AbstractConstituentParser<Oem,OemParser>
public boolean prepareMetadata()
prepareMetadata
in class AbstractConstituentParser<Oem,OemParser>
public boolean inMetadata()
inMetadata
in class AbstractConstituentParser<Oem,OemParser>
public boolean finalizeMetadata()
finalizeMetadata
in class AbstractConstituentParser<Oem,OemParser>
public boolean prepareData()
prepareData
in class AbstractConstituentParser<Oem,OemParser>
public boolean inData()
inData
in class AbstractConstituentParser<Oem,OemParser>
public boolean finalizeData()
finalizeData
in class AbstractConstituentParser<Oem,OemParser>
public Oem build()
build
in interface MessageParser<Oem>
Copyright © 2002-2022 CS GROUP. All rights reserved.