Interface DataContext

All Known Implementing Classes:
CompositeDataContext, ExceptionalDataContext, LazyLoadedDataContext

public interface DataContext
Provides auxiliary data for portions of the application.
Since:
10.1
Author:
Evan Ward
  • Method Details

    • getDefault

      Get the default data context that is used to implement the static factories (TimeScalesFactory, FramesFactory, etc) and loaders that feed themselves (e.g. KlobucharIonoCoefficientsLoader). It is used to maintain compatibility with auxiliary data loading in Orekit 10.0.
      Returns:
      Orekit's default data context.
    • setDefault

      static void setDefault(LazyLoadedDataContext context)
      Set the default data context that is used to implement Orekit's static factories.

      Calling this method will not modify any instances already retrieved from Orekit's static factories. In general this method should only be called at application start up before any of the static factories are used.

      Parameters:
      context - the new data context.
      See Also:
    • getTimeScales

      TimeScales getTimeScales()
      Get a factory for constructing TimeScales based on the auxiliary data in this context.
      Returns:
      the set of common time scales using this data context.
    • getFrames

      Frames getFrames()
      Get a factory constructing Frames based on the auxiliary data in this context.
      Returns:
      the set of common reference frames using this data context.
    • getCelestialBodies

      CelestialBodies getCelestialBodies()
      Get a factory constructing CelestialBodys based on the auxiliary data in this context.
      Returns:
      the set of common celestial bodies using this data context.
    • getGravityFields

      GravityFields getGravityFields()
      Get a factory constructing gravity fields based on the auxiliary data in this context.
      Returns:
      the gravity fields using this data context.
    • getGeoMagneticFields

      GeoMagneticFields getGeoMagneticFields()
      Get a factory constructing GeoMagneticFields based on the auxiliary data in this context.
      Returns:
      the geomagnetic fields using this data context.