Package org.orekit.data
Class ExceptionalDataContext
- java.lang.Object
-
- org.orekit.data.LazyLoadedDataContext
-
- org.orekit.data.ExceptionalDataContext
-
- All Implemented Interfaces:
DataContext
public class ExceptionalDataContext extends LazyLoadedDataContext implements DataContext
A data context that always throws a runtime exception when it's methods are used. Can be useful for determining if the default data context is used. E.g.DataContext.setDefault(new ExceptionalDataContext());. The following classes have static fields that are initialized using the default data context:- Since:
- 10.1
- Author:
- Evan Ward
- See Also:
DataContext.setDefault(LazyLoadedDataContext)
-
-
Constructor Summary
Constructors Constructor Description ExceptionalDataContext()Empty constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LazyLoadedCelestialBodiesgetCelestialBodies()Get a factory constructingCelestialBodys based on the auxiliary data in this context.LazyLoadedFramesgetFrames()Get a factory constructingFrames based on the auxiliary data in this context.LazyLoadedGeoMagneticFieldsgetGeoMagneticFields()Get a factory constructingGeoMagneticFields based on the auxiliary data in this context.LazyLoadedGravityFieldsgetGravityFields()Get a factory constructing gravity fields based on the auxiliary data in this context.LazyLoadedTimeScalesgetTimeScales()Get a factory for constructingTimeScales based on the auxiliary data in this context.-
Methods inherited from class org.orekit.data.LazyLoadedDataContext
getDataProvidersManager
-
-
-
-
Method Detail
-
getTimeScales
public LazyLoadedTimeScales getTimeScales()
Description copied from interface:DataContextGet a factory for constructingTimeScales based on the auxiliary data in this context.- Specified by:
getTimeScalesin interfaceDataContext- Overrides:
getTimeScalesin classLazyLoadedDataContext- Returns:
- the set of common time scales using this data context.
-
getFrames
public LazyLoadedFrames getFrames()
Description copied from interface:DataContextGet a factory constructingFrames based on the auxiliary data in this context.- Specified by:
getFramesin interfaceDataContext- Overrides:
getFramesin classLazyLoadedDataContext- Returns:
- the set of common reference frames using this data context.
-
getCelestialBodies
public LazyLoadedCelestialBodies getCelestialBodies()
Description copied from interface:DataContextGet a factory constructingCelestialBodys based on the auxiliary data in this context.- Specified by:
getCelestialBodiesin interfaceDataContext- Overrides:
getCelestialBodiesin classLazyLoadedDataContext- Returns:
- the set of common celestial bodies using this data context.
-
getGravityFields
public LazyLoadedGravityFields getGravityFields()
Description copied from interface:DataContextGet a factory constructing gravity fields based on the auxiliary data in this context.- Specified by:
getGravityFieldsin interfaceDataContext- Overrides:
getGravityFieldsin classLazyLoadedDataContext- Returns:
- the gravity fields using this data context.
-
getGeoMagneticFields
public LazyLoadedGeoMagneticFields getGeoMagneticFields()
Description copied from interface:DataContextGet a factory constructingGeoMagneticFields based on the auxiliary data in this context.- Specified by:
getGeoMagneticFieldsin interfaceDataContext- Overrides:
getGeoMagneticFieldsin classLazyLoadedDataContext- Returns:
- the geomagnetic fields using this data context.
-
-