public class ContextBinding extends Object
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.
Constructor and 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.
|
Modifier and Type | Method and 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.
|
public ContextBinding(Supplier<IERSConventions> conventionsSupplier, BooleanSupplier simpleEOPSupplier, Supplier<DataContext> dataContextSupplier, Supplier<ParsedUnitsBehavior> behaviorSupplier, Supplier<AbsoluteDate> referenceDateSupplier, Supplier<TimeSystem> timeSystemSupplier, DoubleSupplier clockCountSupplier, DoubleSupplier clockRateSupplier)
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 systempublic ParsedUnitsBehavior getParsedUnitsBehavior()
public IERSConventions getConventions()
public boolean isSimpleEOP()
public DataContext getDataContext()
public AbsoluteDate getReferenceDate()
public TimeSystem getTimeSystem()
public double getClockCount()
public double getClockRate()
Copyright © 2002-2021 CS GROUP. All rights reserved.