Package org.orekit.files.ccsds.utils
Class ContextBinding
java.lang.Object
org.orekit.files.ccsds.utils.ContextBinding
Context for parsing/writing Navigation Data Message.
This class is a facade providing late binding access to data.
Late binding is mainly useful at parse time as it allows some data to be set up
during parsing itself. This is used for example to access time system that is generally parsed from metadata block, and used later on
within the same metadata block.
- Since:
- 11.0
- Author:
- Luc Maisonobe
-
Constructor Summary
ConstructorsConstructorDescriptionContextBinding(Supplier<IERSConventions> conventionsSupplier, BooleanSupplier simpleEOPSupplier, Supplier<DataContext> dataContextSupplier, Supplier<ParsedUnitsBehavior> behaviorSupplier, Supplier<AbsoluteDate> referenceDateSupplier, Supplier<TimeSystem> timeSystemSupplier, DoubleSupplier clockCountSupplier, DoubleSupplier clockRateSupplier) Create a new context. -
Method Summary
Modifier and TypeMethodDescriptiondoubleGet clock count.doubleGet clock rate.Get IERS conventions.Get the data context used for getting frames, time scales, and celestial bodies.Get the behavior to adopt for handling parsed units.Get initial date.Get the time system.booleanGet EOP interpolation method.
-
Constructor Details
-
ContextBinding
public ContextBinding(Supplier<IERSConventions> conventionsSupplier, BooleanSupplier simpleEOPSupplier, Supplier<DataContext> dataContextSupplier, Supplier<ParsedUnitsBehavior> behaviorSupplier, Supplier<AbsoluteDate> referenceDateSupplier, Supplier<TimeSystem> timeSystemSupplier, DoubleSupplier clockCountSupplier, DoubleSupplier clockRateSupplier) Create a new context.- Parameters:
conventionsSupplier- supplier for IERS conventions to usesimpleEOPSupplier- supplier for simple or accurate EOP interpolation indicatordataContextSupplier- supplier for data context to usebehaviorSupplier- supplier for behavior to adopt on unitreferenceDateSupplier- supplier for reference date for mission elapsed time (MET), mission relative time (MRT), or spacecraft clock (SCLK) time systemstimeSystemSupplier- supplier for reference system for interpreting datesclockCountSupplier- supplier for clock count at reference date in spacecraft clock (SCLK) time systemclockRateSupplier- supplier for clock rate in spacecraft clock (SCLK) time system
-
-
Method Details
-
getParsedUnitsBehavior
Get the behavior to adopt for handling parsed units.- Returns:
- behavior to adopt for handling parsed units
-
getConventions
Get IERS conventions.- Returns:
- IERS conventions to use while parsing
-
isSimpleEOP
public boolean isSimpleEOP()Get EOP interpolation method.- Returns:
- true if tidal effects are ignored when interpolating EOP
-
getDataContext
Get the data context used for getting frames, time scales, and celestial bodies.- Returns:
- the data context.
-
getReferenceDate
Get initial date.- Returns:
- reference date to use while parsing
-
getTimeSystem
Get the time system.- Returns:
- time system
-
getClockCount
public double getClockCount()Get clock count.- Returns:
- clock count at reference date
-
getClockRate
public double getClockRate()Get clock rate.- Returns:
- clock rate (in clock ticks per SI second)
-