GroundReceiverCommonParametersWithDerivatives.java

  1. /* Copyright 2002-2024 Luc Maisonobe
  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.measurements;

  18. import java.util.Map;

  19. import org.hipparchus.analysis.differentiation.Gradient;
  20. import org.orekit.frames.FieldTransform;
  21. import org.orekit.propagation.SpacecraftState;
  22. import org.orekit.utils.TimeStampedFieldPVCoordinates;

  23. /** Common intermediate parameters used to estimate measurements where receiver is a ground station.
  24.  * @author Luc Maisonobe
  25.  * @since 12.0
  26.  */
  27. public class GroundReceiverCommonParametersWithDerivatives {

  28.     /** Spacecraft state. */
  29.     private final SpacecraftState state;

  30.     /** Derivatives indices map. */
  31.     private final Map<String, Integer> indices;

  32.     /** Transform between station and inertial frame. */
  33.     private final FieldTransform<Gradient> offsetToInertialDownlink;

  34.     /** Station position in inertial frame at end of the downlink leg. */
  35.     private final TimeStampedFieldPVCoordinates<Gradient> stationDownlink;

  36.     /** Downlink delay. */
  37.     private final Gradient tauD;

  38.     /** Transit state. */
  39.     private final SpacecraftState transitState;

  40.     /** Transit state. */
  41.     private final TimeStampedFieldPVCoordinates<Gradient> transitPV;

  42.     /** Simple constructor.
  43.     * @param state spacecraft state
  44.     * @param indices derivatives indices map
  45.     * @param offsetToInertialDownlink transform between station and inertial frame
  46.     * @param stationDownlink station position in inertial frame at end of the downlink leg
  47.     * @param tauD downlink delay
  48.     * @param transitState transit state
  49.     * @param transitPV transit position/velocity as a gradient
  50.     */
  51.     public GroundReceiverCommonParametersWithDerivatives(final SpacecraftState state,
  52.                                                          final Map<String, Integer> indices,
  53.                                                          final FieldTransform<Gradient> offsetToInertialDownlink,
  54.                                                          final TimeStampedFieldPVCoordinates<Gradient> stationDownlink,
  55.                                                          final Gradient tauD,
  56.                                                          final SpacecraftState transitState,
  57.                                                          final TimeStampedFieldPVCoordinates<Gradient> transitPV) {
  58.         this.state                    = state;
  59.         this.indices                  = indices;
  60.         this.offsetToInertialDownlink = offsetToInertialDownlink;
  61.         this.stationDownlink          = stationDownlink;
  62.         this.tauD                     = tauD;
  63.         this.transitState             = transitState;
  64.         this.transitPV                = transitPV;
  65.     }

  66.     /** Get spacecraft state.
  67.      * @return spacecraft state
  68.      */
  69.     public SpacecraftState getState() {
  70.         return state;
  71.     }

  72.     /** Get derivatives indices map.
  73.      * @return derivatives indices map
  74.      */
  75.     public Map<String, Integer> getIndices() {
  76.         return indices;
  77.     }

  78.     /** Get transform between station and inertial frame.
  79.      * @return transform between station and inertial frame
  80.      */
  81.     public FieldTransform<Gradient> getOffsetToInertialDownlink() {
  82.         return offsetToInertialDownlink;
  83.     }

  84.     /** Get station position in inertial frame at end of the downlink leg.
  85.      * @return station position in inertial frame at end of the downlink leg
  86.      */
  87.     public TimeStampedFieldPVCoordinates<Gradient> getStationDownlink() {
  88.         return stationDownlink;
  89.     }

  90.     /** Get downlink delay.
  91.      * @return ownlink delay
  92.      */
  93.     public Gradient getTauD() {
  94.         return tauD;
  95.     }

  96.     /** Get transit state.
  97.      * @return transit state
  98.      */
  99.     public SpacecraftState getTransitState() {
  100.         return transitState;
  101.     }

  102.     /** Get transit position/velocity.
  103.      * @return transit position/velocity
  104.      */
  105.     public TimeStampedFieldPVCoordinates<Gradient> getTransitPV() {
  106.         return transitPV;
  107.     }

  108. }