SsrHeader.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.ssr;

  18. /**
  19.  * Container for common data in SSR messages header.
  20.  * @author Bryan Cazabonne
  21.  * @since 11.0
  22.  */
  23. public class SsrHeader {

  24.     /** SSR Epoch Time 1s. */
  25.     private double ssrEpoch1s;

  26.     /** SSR Update Interval. */
  27.     private int ssrUpdateInterval;

  28.     /** SSR Multiple Message Indicator. */
  29.     private int ssrMultipleMessageIndicator;

  30.     /** IOD SSR. */
  31.     private int iodSsr;

  32.     /** SSR Provider ID. */
  33.     private int ssrProviderId;

  34.     /** SSR Solution ID. */
  35.     private int ssrSolutionId;

  36.     /** Empty constructor.
  37.      * <p>
  38.      * This constructor is not strictly necessary, but it prevents spurious
  39.      * javadoc warnings with JDK 18 and later.
  40.      * </p>
  41.      * @since 12.0
  42.      */
  43.     public SsrHeader() {
  44.         // nothing to do
  45.     }

  46.     /**
  47.      * Get the SSR Epoch Time 1s.
  48.      * <p>
  49.      * Full seconds since the beginning of the week of continuous time scale
  50.      * with no offset from GPS, Galileo, QZSS, SBAS,
  51.      * UTC leap seconds from GLONASS,
  52.      * -14 s offset from BDS
  53.      * </p>
  54.      * @return the SSR Epoch Time 1s in seconds
  55.      */
  56.     public double getSsrEpoch1s() {
  57.         return ssrEpoch1s;
  58.     }

  59.     /**
  60.      * Set the SSR Epoch Time 1s.
  61.      * @param ssrEpoch1s the SSR Epoch Time 1s to set
  62.      */
  63.     public void setSsrEpoch1s(final double ssrEpoch1s) {
  64.         this.ssrEpoch1s = ssrEpoch1s;
  65.     }

  66.     /**
  67.      * Get the SSR Update Interval.
  68.      * @return the SSR Update Interval in seconds
  69.      */
  70.     public int getSsrUpdateInterval() {
  71.         return ssrUpdateInterval;
  72.     }

  73.     /**
  74.      * Set the SSR Update Interval.
  75.      * @param ssrUpdateInterval the SSR Update Interval to set
  76.      */
  77.     public void setSsrUpdateInterval(final int ssrUpdateInterval) {
  78.         this.ssrUpdateInterval = ssrUpdateInterval;
  79.     }

  80.     /**
  81.      * Get the SSR Multiple Message Indicator.
  82.      * <p>
  83.      * 0 - Last message of a sequence. 1 - Multiple message transmitted
  84.      * </p>
  85.      * @return the SSR Multiple Message Indicator
  86.      */
  87.     public int getSsrMultipleMessageIndicator() {
  88.         return ssrMultipleMessageIndicator;
  89.     }

  90.     /**
  91.      * Set the SSR Multiple Message Indicator.
  92.      * @param ssrMultipleMessageIndicator the SSR Multiple Message Indicator to set
  93.      */
  94.     public void setSsrMultipleMessageIndicator(final int ssrMultipleMessageIndicator) {
  95.         this.ssrMultipleMessageIndicator = ssrMultipleMessageIndicator;
  96.     }

  97.     /**
  98.      * Get the IOD SSR.
  99.      * <p>
  100.      * A change of Issue of Data SSR is used to
  101.      * indicate a change in the SSR generating configuration.
  102.      * </p>
  103.      * @return the IOD SSR
  104.      */
  105.     public int getIodSsr() {
  106.         return iodSsr;
  107.     }

  108.     /**
  109.      * Set the IOD SSR.
  110.      * @param iodSsr the IOF SSR to set
  111.      */
  112.     public void setIodSsr(final int iodSsr) {
  113.         this.iodSsr = iodSsr;
  114.     }

  115.     /**
  116.      * Get the SSR Provider ID.
  117.      * @return the SSR Provider ID
  118.      */
  119.     public int getSsrProviderId() {
  120.         return ssrProviderId;
  121.     }

  122.     /**
  123.      * Set the SSR Provider ID.
  124.      * @param ssrProviderId the SSR Provider ID to set
  125.      */
  126.     public void setSsrProviderId(final int ssrProviderId) {
  127.         this.ssrProviderId = ssrProviderId;
  128.     }

  129.     /**
  130.      * Get the SSR Solution ID.
  131.      * @return the SSR Solution ID
  132.      */
  133.     public int getSsrSolutionId() {
  134.         return ssrSolutionId;
  135.     }

  136.     /**
  137.      * Set the SSR Solution ID.
  138.      * @param ssrSolutionId the SSR Solution ID to set
  139.      */
  140.     public void setSsrSolutionId(final int ssrSolutionId) {
  141.         this.ssrSolutionId = ssrSolutionId;
  142.     }

  143. }