ClockCorrection.java

  1. /* Copyright 2002-2025 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.gnss.metric.messages.common;

  18. /**
  19.  * Container for SSR clock correction data.
  20.  * @author Bryan Cazabonne
  21.  * @since 11.0
  22.  */
  23. public class ClockCorrection {

  24.     /** Delta Clock C0. */
  25.     private final double deltaClockC0;

  26.     /** Delta Clock C1. */
  27.     private final double deltaClockC1;

  28.     /** Delta Clock C2. */
  29.     private final double deltaClockC2;

  30.     /**
  31.      * Constructor.
  32.      * @param c0 delta Clock C0
  33.      * @param c1 delta Clock C1
  34.      * @param c2 delta Clock C2
  35.      */
  36.     public ClockCorrection(final double c0, final double c1, final double c2) {
  37.         this.deltaClockC0 = c0;
  38.         this.deltaClockC1 = c1;
  39.         this.deltaClockC2 = c2;
  40.     }


  41.     /**
  42.      * Get the delta clock C0.
  43.      * <p>
  44.      * The reference time t0 is SSR Epoch Time (IDF003) plus ½ SSR Update Interval.
  45.      * </p>
  46.      * @return the delta clock C0 in seconds
  47.      */
  48.     public double getDeltaClockC0() {
  49.         return deltaClockC0;
  50.     }

  51.     /**
  52.      * Get the delta clock C1.
  53.      * <p>
  54.      * The reference time t0 is SSR Epoch Time (IDF003) plus ½ SSR Update Interval.
  55.      * </p>
  56.      * @return the delta clock C1 in seconds
  57.      */
  58.     public double getDeltaClockC1() {
  59.         return deltaClockC1;
  60.     }

  61.     /**
  62.      * Get the delta clock C2.
  63.      * <p>
  64.      * The reference time t0 is SSR Epoch Time (IDF003) plus ½ SSR Update Interval.
  65.      * </p>
  66.      * @return the delta clock C2 in seconds
  67.      */
  68.     public double getDeltaClockC2() {
  69.         return deltaClockC2;
  70.     }

  71. }