Package org.orekit.files.ccsds.utils
Class ContextBinding
- java.lang.Object
-
- org.orekit.files.ccsds.utils.ContextBinding
-
public class ContextBinding extends Object
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
Constructors Constructor Description 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getClockCount()
Get clock count.double
getClockRate()
Get clock rate.IERSConventions
getConventions()
Get IERS conventions.DataContext
getDataContext()
Get the data context used for getting frames, time scales, and celestial bodies.ParsedUnitsBehavior
getParsedUnitsBehavior()
Get the behavior to adopt for handling parsed units.AbsoluteDate
getReferenceDate()
Get initial date.TimeSystem
getTimeSystem()
Get the time system.boolean
isSimpleEOP()
Get EOP interpolation method.
-
-
-
Constructor Detail
-
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 Detail
-
getParsedUnitsBehavior
public ParsedUnitsBehavior getParsedUnitsBehavior()
Get the behavior to adopt for handling parsed units.- Returns:
- behavior to adopt for handling parsed units
-
getConventions
public IERSConventions 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
public DataContext getDataContext()
Get the data context used for getting frames, time scales, and celestial bodies.- Returns:
- the data context.
-
getReferenceDate
public AbsoluteDate getReferenceDate()
Get initial date.- Returns:
- reference date to use while parsing
-
getTimeSystem
public TimeSystem 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)
-
-