@@ -0,0 +1,2294 @@
+package org.orekit.data;%0A%0Aimport org.orekit.bodies.CelestialBodies;%0Aimport org.orekit.forces.gravity.potential.GravityFields;%0Aimport org.orekit.frames.Frames;%0Aimport org.orekit.models.earth.GeoMagneticFields;%0Aimport org.orekit.time.TimeScales;%0A%0A/**%0A * A simple implementation of %7B@link DataContext%7D that composes the constituent factories%0A * into a data context.%0A *%0A * @author Evan Ward%0A * @since 10.1%0A */%0Apublic class CompositeDataContext implements DataContext %7B%0A%0A    /** Time scales in this data context. */%0A    private final TimeScales timeScales;%0A    /** Frames in this data context. */%0A    private final Frames frames;%0A    /** Celestial bodies in this data context. */%0A    private final CelestialBodies celestialBodies;%0A    /** Gravity fields in this data context. */%0A    private final GravityFields gravityFields;%0A    /** Magnetic fields in this data context. */%0A    private final GeoMagneticFields geoMagneticFields;%0A%0A    /**%0A     * Simple constructor.%0A     *%0A     * @param timeScales        used in this data context.%0A     * @param frames            used in this data context.%0A     * @param celestialBodies   used in this data context.%0A     * @param gravityFields     used in this data context.%0A     * @param geoMagneticFields used in this data context.%0A     */%0A    public CompositeDataContext(final TimeScales timeScales,%0A                                final Frames frames,%0A                                final CelestialBodies celestialBodies,%0A                                final GravityFields gravityFields,%0A                                final GeoMagneticFields geoMagneticFields) %7B%0A        this.timeScales = timeScales;%0A        this.frames = frames;%0A        this.celestialBodies = celestialBodies;%0A        this.gravityFields = gravityFields;%0A        this.geoMagneticFields = geoMagneticFields;%0A    %7D%0A%0A    @Override%0A    public TimeScales getTimeScales() %7B%0A        return timeScales;%0A    %7D%0A%0A    @Override%0A    public Frames getFrames() %7B%0A        return frames;%0A    %7D%0A%0A    @Override%0A    public CelestialBodies getCelestialBodies() %7B%0A        return celestialBodies;%0A    %7D%0A%0A    @Override%0A    public GravityFields getGravityFields() %7B%0A        return gravityFields;%0A    %7D%0A%0A    @Override%0A    public GeoMagneticFields getGeoMagneticFields() %7B%0A        return geoMagneticFields;%0A    %7D%0A%0A%7D%0A

Add CompositeDataContext