OnBoardCommonParametersWithoutDerivatives.java

  1. /* Copyright 2022-2025 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.gnss;

  18. import org.orekit.estimation.measurements.CommonParametersWithoutDerivatives;
  19. import org.orekit.propagation.SpacecraftState;
  20. import org.orekit.utils.TimeStampedPVCoordinates;

  21. /** Common intermediate parameters used to estimate measurements where receiver is a satellite.
  22.  * @author Luc Maisonobe
  23.  * @since 12.1
  24.  */
  25. public class OnBoardCommonParametersWithoutDerivatives
  26.     extends CommonParametersWithoutDerivatives {

  27.     /** Local clock offset. */
  28.     private final double localOffset;

  29.     /** Local clock rate. */
  30.     private final double localRate;

  31.     /** Remote clock offset. */
  32.     private final double remoteOffset;

  33.     /** Remote clock rate. */
  34.     private final double remoteRate;

  35.     /** Remote satellite position/velocity. */
  36.     private final TimeStampedPVCoordinates remotePV;

  37.     /** Simple constructor.
  38.      * @param localState local spacecraft state
  39.      * @param localOffset local clock offset
  40.      * @param localRate local clock rate
  41.      * @param remoteOffset remote clock offset
  42.      * @param remoteRate remote clock rate
  43.      * @param tauD downlink delay
  44.      * @param localPV local satellite position/velocity
  45.      * @param remotePV remote satellite position/velocity
  46.      */
  47.     public OnBoardCommonParametersWithoutDerivatives(final SpacecraftState localState,
  48.                                                      final double localOffset, final double localRate,
  49.                                                      final double remoteOffset, final double remoteRate,
  50.                                                      final double tauD,
  51.                                                      final TimeStampedPVCoordinates localPV,
  52.                                                      final TimeStampedPVCoordinates remotePV) {
  53.         super(localState, tauD, localState, localPV);
  54.         this.localOffset  = localOffset;
  55.         this.localRate    = localRate;
  56.         this.remoteOffset = remoteOffset;
  57.         this.remoteRate   = remoteRate;
  58.         this.remotePV     = remotePV;
  59.     }

  60.     /** Get local clock offset.
  61.      * @return local clock offset
  62.      */
  63.     public double getLocalOffset() {
  64.         return localOffset;
  65.     }

  66.     /** Get local clock rate.
  67.      * @return local clock rate
  68.      */
  69.     public double getLocalRate() {
  70.         return localRate;
  71.     }

  72.     /** Get remote clock offset.
  73.      * @return remote clock offset
  74.      */
  75.     public double getRemoteOffset() {
  76.         return remoteOffset;
  77.     }

  78.     /** Get remote clock rate.
  79.      * @return remote clock rate
  80.      */
  81.     public double getRemoteRate() {
  82.         return remoteRate;
  83.     }

  84.     /** Get remote satellite position/velocity.
  85.      * @return remote satellite position/velocity
  86.      */
  87.     public TimeStampedPVCoordinates getRemotePV() {
  88.         return remotePV;
  89.     }

  90. }