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 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 use
      simpleEOPSupplier - supplier for simple or accurate EOP interpolation indicator
      dataContextSupplier - supplier for data context to use
      behaviorSupplier - supplier for behavior to adopt on unit
      referenceDateSupplier - supplier for reference date for mission elapsed time (MET), mission relative time (MRT), or spacecraft clock (SCLK) time systems
      timeSystemSupplier - supplier for reference system for interpreting dates
      clockCountSupplier - supplier for clock count at reference date in spacecraft clock (SCLK) time system
      clockRateSupplier - supplier for clock rate in spacecraft clock (SCLK) time system
  • Method Details

    • 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)