Class OmmParser
java.lang.Object
org.orekit.files.ccsds.utils.parsing.AbstractMessageParser<Omm>
org.orekit.files.ccsds.utils.parsing.AbstractConstituentParser<OdmHeader,Omm,OmmParser>
org.orekit.files.ccsds.ndm.odm.OdmParser<Omm,OmmParser>
org.orekit.files.ccsds.ndm.odm.omm.OmmParser
- All Implemented Interfaces:
MessageParser<Omm>
A parser for the CCSDS OMM (Orbiter Mean-Elements Message).
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.
- Since:
- 6.1
- Author:
- sports
-
Constructor Summary
ConstructorsConstructorDescriptionOmmParser(IERSConventions conventions, boolean simpleEOP, DataContext dataContext, AbsoluteDate missionReferenceDate, double mu, double defaultMass, ParsedUnitsBehavior parsedUnitsBehavior, Function<ParseToken, List<ParseToken>>[] filters, CcsdsFrameMapper frameMapper) Complete constructor. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the file from parsed entries.booleanFinalize data after parsing.booleanFinalize header after parsing.booleanFinalize metadata after parsing.Get file header to fill.Get the non-default token builders for special XML elements.booleaninData()Acknowledge data parsing has started.booleaninHeader()Acknowledge header parsing has started.booleanAcknowledge metada parsing has started.booleanPrepare data for parsing.booleanPrepare header for parsing.booleanPrepare metadata for parsing.voidreset(FileFormat fileFormat) Reset parser to initial state before parsing.Methods inherited from class org.orekit.files.ccsds.ndm.odm.OdmParser
getMissionReferenceDate, getMuSet, getSelectedMu, setMuCreated, setMuParsedMethods inherited from class org.orekit.files.ccsds.utils.parsing.AbstractConstituentParser
getConventions, getDataContext, getFrameMapper, getParsedUnitsBehavior, isSimpleEOPMethods inherited from class org.orekit.files.ccsds.utils.parsing.AbstractMessageParser
anticipateNext, getCurrent, getFileFormat, getFormatVersionKey, parseMessage, process, reset, setEndTagSeen, setFallback, wasEndTagSeen
-
Constructor Details
-
OmmParser
public OmmParser(IERSConventions conventions, boolean simpleEOP, DataContext dataContext, AbsoluteDate missionReferenceDate, double mu, double defaultMass, ParsedUnitsBehavior parsedUnitsBehavior, Function<ParseToken, List<ParseToken>>[] filters, CcsdsFrameMapper frameMapper) Complete constructor.Calling this constructor directly is not recommended. Users should rather use
parserBuilder.buildOmmParser().- Parameters:
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 systemsmu- gravitational coefficientdefaultMass- default mass to use if there are no spacecraft parameters block logical block in the fileparsedUnitsBehavior- behavior to adopt for handling parsed unitsfilters- filters to apply to parse tokensframeMapper- for creating an OrekitFrame.- Since:
- 13.1.5
-
-
Method Details
-
getSpecialXmlElementsBuilders
Get the non-default token builders for special XML elements.- Specified by:
getSpecialXmlElementsBuildersin interfaceMessageParser<Omm>- Overrides:
getSpecialXmlElementsBuildersin classAbstractMessageParser<Omm>- Returns:
- map of token builders for special XML elements (keyed by XML element name)
-
getHeader
Get file header to fill.- Specified by:
getHeaderin classAbstractConstituentParser<OdmHeader,Omm, OmmParser> - Returns:
- file header to fill
-
reset
Reset parser to initial state before parsing.- Parameters:
fileFormat- format of the file ready to be parsed
-
prepareHeader
public boolean prepareHeader()Prepare header for parsing.- Specified by:
prepareHeaderin classAbstractConstituentParser<OdmHeader,Omm, OmmParser> - Returns:
- true if parser was able to perform the action
-
inHeader
public boolean inHeader()Acknowledge header parsing has started.- Specified by:
inHeaderin classAbstractConstituentParser<OdmHeader,Omm, OmmParser> - Returns:
- true if parser was able to perform the action
-
finalizeHeader
public boolean finalizeHeader()Finalize header after parsing.- Specified by:
finalizeHeaderin classAbstractConstituentParser<OdmHeader,Omm, OmmParser> - Returns:
- true if parser was able to perform the action
-
prepareMetadata
public boolean prepareMetadata()Prepare metadata for parsing.- Specified by:
prepareMetadatain classAbstractConstituentParser<OdmHeader,Omm, OmmParser> - Returns:
- true if parser was able to perform the action
-
inMetadata
public boolean inMetadata()Acknowledge metada parsing has started.- Specified by:
inMetadatain classAbstractConstituentParser<OdmHeader,Omm, OmmParser> - Returns:
- true if parser was able to perform the action
-
finalizeMetadata
public boolean finalizeMetadata()Finalize metadata after parsing.- Specified by:
finalizeMetadatain classAbstractConstituentParser<OdmHeader,Omm, OmmParser> - Returns:
- true if parser was able to perform the action
-
prepareData
public boolean prepareData()Prepare data for parsing.- Specified by:
prepareDatain classAbstractConstituentParser<OdmHeader,Omm, OmmParser> - Returns:
- true if parser was able to perform the action
-
inData
public boolean inData()Acknowledge data parsing has started.- Specified by:
inDatain classAbstractConstituentParser<OdmHeader,Omm, OmmParser> - Returns:
- true if parser was able to perform the action
-
finalizeData
public boolean finalizeData()Finalize data after parsing.- Specified by:
finalizeDatain classAbstractConstituentParser<OdmHeader,Omm, OmmParser> - Returns:
- true if parser was able to perform the action
-
build
Build the file from parsed entries.- Returns:
- parsed file
-