Package org.orekit.data
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 Summary
Modifier and TypeMethodDescriptionGet a factory constructingCelestialBodys based on the auxiliary data in this context.static LazyLoadedDataContextGet the default data context that is used to implement the static factories (TimeScalesFactory,FramesFactory, etc) and loaders that feed themselves (e.g.Get a factory constructingFrames based on the auxiliary data in this context.Get a factory constructingGeoMagneticFields based on the auxiliary data in this context.Get a factory constructing gravity fields based on the auxiliary data in this context.Get a factory for constructingTimeScales based on the auxiliary data in this context.static voidsetDefault(LazyLoadedDataContext context) Set the default data context that is used to implement Orekit's static factories.
-
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
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 constructingTimeScales 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 constructingFrames 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 constructingCelestialBodys 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 constructingGeoMagneticFields based on the auxiliary data in this context.- Returns:
- the geomagnetic fields using this data context.
-