ParameterConfiguration.java

  1. /* Copyright 2010-2011 Centre National d'Études Spatiales
  2.  * Licensed to CS Systèmes d'Information (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.propagation.numerical;

  18. import org.orekit.forces.ForceModel;


  19. /** Simple container associating a parameter name with a step to compute its jacobian
  20.  * and the provider that manages it.
  21.  * @author Véronique Pommier-Maurussane
  22.  */
  23. public class ParameterConfiguration {

  24.     /** Parameter name. */
  25.     private String parameterName;

  26.     /** Parameter step for finite difference computation of partial derivative with respect to that parameter. */
  27.     private double hP;

  28.     /** Provider handling this parameter. */
  29.     private ForceModel provider;

  30.     /** Parameter name and step pair constructor.
  31.      * @param parameterName parameter name
  32.      * @param hP parameter step */
  33.     public ParameterConfiguration(final String parameterName, final double hP) {
  34.         this.parameterName = parameterName;
  35.         this.hP = hP;
  36.         this.provider = null;
  37.     }

  38.     /** Get parameter name.
  39.      * @return parameterName parameter name
  40.      */
  41.     public String getParameterName() {
  42.         return parameterName;
  43.     }

  44.     /** Get parameter step.
  45.      * @return hP parameter step
  46.      */
  47.     public double getHP() {
  48.         return hP;
  49.     }

  50.     /** Set the povider handling this parameter.
  51.      * @param provider provider handling this parameter
  52.      */
  53.     public void setProvider(final ForceModel provider) {
  54.         this.provider = provider;
  55.     }

  56.     /** Get the povider handling this parameter.
  57.      * @return provider handling this parameter
  58.      */
  59.     public ForceModel getProvider() {
  60.         return provider;
  61.     }

  62. }