Package org.orekit.files.ccsds.ndm.odm
Class OdmParser<T extends NdmConstituent<OdmHeader,?>,P extends OdmParser<T,?>>
java.lang.Object
org.orekit.files.ccsds.utils.parsing.AbstractMessageParser<T>
org.orekit.files.ccsds.utils.parsing.AbstractConstituentParser<OdmHeader,T,P>
org.orekit.files.ccsds.ndm.odm.OdmParser<T,P>
- Type Parameters:
T- type of the ODM fileP- type of the parser
- All Implemented Interfaces:
MessageParser<T>
public abstract class OdmParser<T extends NdmConstituent<OdmHeader,?>,P extends OdmParser<T,?>>
extends AbstractConstituentParser<OdmHeader,T,P>
Common parser for Orbit Parameter/Ephemeris/Mean/Comprehensive Messages.
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:
- 11.0
- Author:
- Luc Maisonobe
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOdmParser(String root, String formatVersionKey, IERSConventions conventions, boolean simpleEOP, DataContext dataContext, AbsoluteDate missionReferenceDate, double mu, ParsedUnitsBehavior parsedUnitsBehavior, Function<ParseToken, List<ParseToken>>[] filters, CcsdsFrameMapper frameMapper) Complete constructor. -
Method Summary
Modifier and TypeMethodDescriptionGet reference date for Mission Elapsed Time and Mission Relative Time time systems.protected doublegetMuSet()Get the gravitational coefficient set at construction.doubleSelect the gravitational coefficient to use.protected voidsetMuCreated(double muCreated) Set the gravitational coefficient created from the knowledge of the central body.protected voidsetMuParsed(double muParsed) Set the gravitational coefficient parsed in the ODM File.Methods inherited from class org.orekit.files.ccsds.utils.parsing.AbstractConstituentParser
finalizeData, finalizeHeader, finalizeMetadata, getConventions, getDataContext, getFrameMapper, getHeader, getParsedUnitsBehavior, inData, inHeader, inMetadata, isSimpleEOP, prepareData, prepareHeader, prepareMetadataMethods inherited from class org.orekit.files.ccsds.utils.parsing.AbstractMessageParser
anticipateNext, getCurrent, getFileFormat, getFormatVersionKey, getSpecialXmlElementsBuilders, parseMessage, process, reset, setEndTagSeen, setFallback, wasEndTagSeenMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.orekit.files.ccsds.utils.lexical.MessageParser
build, reset
-
Constructor Details
-
OdmParser
protected OdmParser(String root, String formatVersionKey, IERSConventions conventions, boolean simpleEOP, DataContext dataContext, AbsoluteDate missionReferenceDate, double mu, ParsedUnitsBehavior parsedUnitsBehavior, Function<ParseToken, List<ParseToken>>[] filters, CcsdsFrameMapper frameMapper) Complete constructor.- Parameters:
root- root element for XML filesformatVersionKey- key for format versionconventions- IERS ConventionssimpleEOP- if true, tidal effects are ignored when interpolating EOPdataContext- used to retrieve frames and time scalesmissionReferenceDate- reference date for Mission Elapsed Time or Mission Relative Time time systemsmu- gravitational coefficientparsedUnitsBehavior- behavior to adopt for handling parsed unitsfilters- filters to apply to parse tokensframeMapper- for creating an OrekitFrame.- Since:
- 13.1.5
-
-
Method Details
-
getMissionReferenceDate
Get reference date for Mission Elapsed Time and Mission Relative Time time systems.- Returns:
- the reference date
-
getMuSet
protected double getMuSet()Get the gravitational coefficient set at construction.- Returns:
- gravitational coefficient set at construction
-
setMuParsed
protected void setMuParsed(double muParsed) Set the gravitational coefficient parsed in the ODM File.- Parameters:
muParsed- the coefficient to be set
-
setMuCreated
protected void setMuCreated(double muCreated) Set the gravitational coefficient created from the knowledge of the central body.- Parameters:
muCreated- the coefficient to be set
-
getSelectedMu
public double getSelectedMu()Select the gravitational coefficient to use. In order of decreasing priority, finalMU is set equal to:- the coefficient parsed in the file,
- the coefficient set by the user with the parser's method setMu,
- the coefficient created from the knowledge of the central body.
- Returns:
- selected gravitational coefficient
-