Package org.orekit.data
Interface DataContext
-
- All Known Implementing Classes:
CompositeDataContext,ExceptionalDataContext,LazyLoadedDataContext
public interface DataContextProvides auxiliary data for portions of the application.- Since:
- 10.1
- Author:
- Evan Ward
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description CelestialBodiesgetCelestialBodies()Get a factory constructingCelestialBodys based on the auxiliary data in this context.static LazyLoadedDataContextgetDefault()Get the default data context that is used to implement the static factories (TimeScalesFactory,FramesFactory, etc) and loaders that feed themselves (e.g.FramesgetFrames()Get a factory constructingFrames based on the auxiliary data in this context.GeoMagneticFieldsgetGeoMagneticFields()Get a factory constructingGeoMagneticFields based on the auxiliary data in this context.GravityFieldsgetGravityFields()Get a factory constructing gravity fields based on the auxiliary data in this context.TimeScalesgetTimeScales()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 Detail
-
getDefault
@DefaultDataContext static LazyLoadedDataContext 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:
getDefault()
-
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.
-
-