DSSTKalmanModel.java

  1. /* Copyright 2002-2022 CS GROUP
  2.  * Licensed to CS GROUP (CS) under one or more
  3.  * contributor license agreements.  See the NOTICE file distributed with
  4.  * this work for additional information regarding copyright ownership.
  5.  * CS licenses this file to You under the Apache License, Version 2.0
  6.  * (the "License"); you may not use this file except in compliance with
  7.  * the License.  You may obtain a copy of the License at
  8.  *
  9.  *   http://www.apache.org/licenses/LICENSE-2.0
  10.  *
  11.  * Unless required by applicable law or agreed to in writing, software
  12.  * distributed under the License is distributed on an "AS IS" BASIS,
  13.  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14.  * See the License for the specific language governing permissions and
  15.  * limitations under the License.
  16.  */
  17. package org.orekit.estimation.sequential;

  18. import java.util.List;

  19. import org.orekit.propagation.MatricesHarvester;
  20. import org.orekit.propagation.PropagationType;
  21. import org.orekit.propagation.Propagator;
  22. import org.orekit.propagation.conversion.OrbitDeterminationPropagatorBuilder;
  23. import org.orekit.propagation.semianalytical.dsst.DSSTJacobiansMapper;
  24. import org.orekit.propagation.semianalytical.dsst.DSSTPropagator;
  25. import org.orekit.utils.ParameterDriversList;

  26. /** Class defining the process model dynamics to use with a {@link KalmanEstimator}.
  27.  * <p>
  28.  * This class is an adaption of the {@link KalmanModel} class
  29.  * but for the {@link DSSTPropagator DSST propagator}.
  30.  * </p>
  31.  * @author Romain Gerbaud
  32.  * @author Maxime Journot
  33.  * @author Bryan Cazabonne
  34.  * @since 10.0
  35.  * @deprecated as of 11.1, replaced by {@link SemiAnalyticalKalmanModel}
  36.  */
  37. @Deprecated
  38. public class DSSTKalmanModel extends AbstractKalmanModel {

  39.     /** Kalman process model constructor.
  40.      * @param propagatorBuilders propagators builders used to evaluate the orbits.
  41.      * @param covarianceMatricesProviders providers for covariance matrices
  42.      * @param estimatedMeasurementParameters measurement parameters to estimate
  43.      * @param measurementProcessNoiseMatrix provider for measurement process noise matrix
  44.      * @param propagationType type of the orbit used for the propagation (mean or osculating)
  45.      * @param stateType type of the elements used to define the orbital state (mean or osculating)
  46.      */
  47.     public DSSTKalmanModel(final List<OrbitDeterminationPropagatorBuilder> propagatorBuilders,
  48.                            final List<CovarianceMatrixProvider> covarianceMatricesProviders,
  49.                            final ParameterDriversList estimatedMeasurementParameters,
  50.                            final CovarianceMatrixProvider measurementProcessNoiseMatrix,
  51.                            final PropagationType propagationType,
  52.                            final PropagationType stateType) {
  53.         // call super constructor
  54.         super(propagatorBuilders, covarianceMatricesProviders, estimatedMeasurementParameters,
  55.               measurementProcessNoiseMatrix, new DSSTJacobiansMapper[propagatorBuilders.size()],
  56.               propagationType, stateType);
  57.     }

  58.     /** {@inheritDoc} */
  59.     @Override
  60.     protected void updateReferenceTrajectories(final Propagator[] propagators,
  61.                                                final PropagationType pType,
  62.                                                final PropagationType sType) {

  63.         // Update the reference trajectory propagator
  64.         setReferenceTrajectories(propagators);

  65.         // Jacobian mappers
  66.         final MatricesHarvester[] harvesters = new MatricesHarvester[propagators.length];

  67.         for (int k = 0; k < propagators.length; ++k) {
  68.             // Link the partial derivatives to this new propagator
  69.             final String equationName = KalmanEstimator.class.getName() + "-derivatives-" + k;
  70.             harvesters[k] = ((DSSTPropagator) getReferenceTrajectories()[k]).setupMatricesComputation(equationName, null, null);
  71.         }

  72.         // Update Jacobian harvesters
  73.         setHarvesters(harvesters);

  74.     }

  75. }