Class CompositeDataContext

  • All Implemented Interfaces:
    DataContext

    public class CompositeDataContext
    extends Object
    implements DataContext
    A simple implementation of DataContext that composes the constituent factories into a data context.
    Since:
    10.1
    Author:
    Evan Ward
    • Constructor Detail

      • CompositeDataContext

        public CompositeDataContext​(TimeScales timeScales,
                                    Frames frames,
                                    CelestialBodies celestialBodies,
                                    GravityFields gravityFields,
                                    GeoMagneticFields geoMagneticFields)
        Simple constructor.
        Parameters:
        timeScales - used in this data context.
        frames - used in this data context.
        celestialBodies - used in this data context.
        gravityFields - used in this data context.
        geoMagneticFields - used in this data context.
    • Method Detail

      • getTimeScales

        public TimeScales getTimeScales()
        Description copied from interface: DataContext
        Get a factory for constructing TimeScales based on the auxiliary data in this context.
        Specified by:
        getTimeScales in interface DataContext
        Returns:
        the set of common time scales using this data context.
      • getFrames

        public Frames getFrames()
        Description copied from interface: DataContext
        Get a factory constructing Frames based on the auxiliary data in this context.
        Specified by:
        getFrames in interface DataContext
        Returns:
        the set of common reference frames using this data context.
      • getGravityFields

        public GravityFields getGravityFields()
        Description copied from interface: DataContext
        Get a factory constructing gravity fields based on the auxiliary data in this context.
        Specified by:
        getGravityFields in interface DataContext
        Returns:
        the gravity fields using this data context.