GroundReceiverCommonParametersWithoutDerivatives.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 org.orekit.frames.Transform;
  19. import org.orekit.propagation.SpacecraftState;
  20. import org.orekit.utils.TimeStampedPVCoordinates;

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

  26.     /** Spacecraft state. */
  27.     private final SpacecraftState state;

  28.     /** Transform between station and inertial frame. */
  29.     private final Transform offsetToInertialDownlink;

  30.     /** Station position in inertial frame at end of the downlink leg. */
  31.     private final TimeStampedPVCoordinates stationDownlink;

  32.     /** Downlink delay. */
  33.     private final double tauD;

  34.     /** Transit state. */
  35.     private final SpacecraftState transitState;

  36.     /** Transit position/velocity. */
  37.     private final TimeStampedPVCoordinates transitPV;

  38.     /** Simple constructor.
  39.     * @param state spacecraft state
  40.     * @param offsetToInertialDownlink transform between station and inertial frame
  41.     * @param stationDownlink station position in inertial frame at end of the downlink leg
  42.     * @param tauD downlink delay
  43.     * @param transitState transit state
  44.     * @param transitPV transit position/velocity
  45.     */
  46.     public GroundReceiverCommonParametersWithoutDerivatives(final SpacecraftState state,
  47.                                                             final Transform offsetToInertialDownlink,
  48.                                                             final TimeStampedPVCoordinates stationDownlink,
  49.                                                             final double tauD,
  50.                                                             final SpacecraftState transitState,
  51.                                                             final TimeStampedPVCoordinates transitPV) {
  52.         this.state                    = state;
  53.         this.offsetToInertialDownlink = offsetToInertialDownlink;
  54.         this.stationDownlink          = stationDownlink;
  55.         this.tauD                     = tauD;
  56.         this.transitState             = transitState;
  57.         this.transitPV                = transitPV;
  58.     }

  59.     /** Get spacecraft state.
  60.      * @return spacecraft state
  61.      */
  62.     public SpacecraftState getState() {
  63.         return state;
  64.     }

  65.     /** Get transform between station and inertial frame.
  66.      * @return transform between station and inertial frame
  67.      */
  68.     public Transform getOffsetToInertialDownlink() {
  69.         return offsetToInertialDownlink;
  70.     }

  71.     /** Get station position in inertial frame at end of the downlink leg.
  72.      * @return station position in inertial frame at end of the downlink leg
  73.      */
  74.     public TimeStampedPVCoordinates getStationDownlink() {
  75.         return stationDownlink;
  76.     }

  77.     /** Get downlink delay.
  78.      * @return ownlink delay
  79.      */
  80.     public double getTauD() {
  81.         return tauD;
  82.     }

  83.     /** Get transit state.
  84.      * @return transit state
  85.      */
  86.     public SpacecraftState getTransitState() {
  87.         return transitState;
  88.     }

  89.     /** Get transit position/velocity.
  90.      * @return transit position/velocity
  91.      */
  92.     public TimeStampedPVCoordinates getTransitPV() {
  93.         return transitPV;
  94.     }

  95. }