SsrHeader.java

  1. /* Copyright 2002-2022 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.     /**
  37.      * Get the SSR Epoch Time 1s.
  38.      * <p>
  39.      * Full seconds since the beginning of the week of continuous time scale
  40.      * with no offset from GPS, Galileo, QZSS, SBAS,
  41.      * UTC leap seconds from GLONASS,
  42.      * -14 s offset from BDS
  43.      * </p>
  44.      * @return the SSR Epoch Time 1s in seconds
  45.      */
  46.     public double getSsrEpoch1s() {
  47.         return ssrEpoch1s;
  48.     }

  49.     /**
  50.      * Set the SSR Epoch Time 1s.
  51.      * @param ssrEpoch1s the SSR Epoch Time 1s to set
  52.      */
  53.     public void setSsrEpoch1s(final double ssrEpoch1s) {
  54.         this.ssrEpoch1s = ssrEpoch1s;
  55.     }

  56.     /**
  57.      * Get the SSR Update Interval.
  58.      * @return the SSR Update Interval in seconds
  59.      */
  60.     public int getSsrUpdateInterval() {
  61.         return ssrUpdateInterval;
  62.     }

  63.     /**
  64.      * Set the SSR Update Interval.
  65.      * @param ssrUpdateInterval the SSR Update Interval to set
  66.      */
  67.     public void setSsrUpdateInterval(final int ssrUpdateInterval) {
  68.         this.ssrUpdateInterval = ssrUpdateInterval;
  69.     }

  70.     /**
  71.      * Get the SSR Multiple Message Indicator.
  72.      * <p>
  73.      * 0 - Last message of a sequence. 1 - Multiple message transmitted
  74.      * </p>
  75.      * @return the SSR Multiple Message Indicator
  76.      */
  77.     public int getSsrMultipleMessageIndicator() {
  78.         return ssrMultipleMessageIndicator;
  79.     }

  80.     /**
  81.      * Set the SSR Multiple Message Indicator.
  82.      * @param ssrMultipleMessageIndicator the SSR Multiple Message Indicator to set
  83.      */
  84.     public void setSsrMultipleMessageIndicator(final int ssrMultipleMessageIndicator) {
  85.         this.ssrMultipleMessageIndicator = ssrMultipleMessageIndicator;
  86.     }

  87.     /**
  88.      * Get the IOD SSR.
  89.      * <p>
  90.      * A change of Issue of Data SSR is used to
  91.      * indicate a change in the SSR generating configuration.
  92.      * </p>
  93.      * @return the IOD SSR
  94.      */
  95.     public int getIodSsr() {
  96.         return iodSsr;
  97.     }

  98.     /**
  99.      * Set the IOD SSR.
  100.      * @param iodSsr the IOF SSR to set
  101.      */
  102.     public void setIodSsr(final int iodSsr) {
  103.         this.iodSsr = iodSsr;
  104.     }

  105.     /**
  106.      * Get the SSR Provider ID.
  107.      * @return the SSR Provider ID
  108.      */
  109.     public int getSsrProviderId() {
  110.         return ssrProviderId;
  111.     }

  112.     /**
  113.      * Set the SSR Provider ID.
  114.      * @param ssrProviderId the SSR Provider ID to set
  115.      */
  116.     public void setSsrProviderId(final int ssrProviderId) {
  117.         this.ssrProviderId = ssrProviderId;
  118.     }

  119.     /**
  120.      * Get the SSR Solution ID.
  121.      * @return the SSR Solution ID
  122.      */
  123.     public int getSsrSolutionId() {
  124.         return ssrSolutionId;
  125.     }

  126.     /**
  127.      * Set the SSR Solution ID.
  128.      * @param ssrSolutionId the SSR Solution ID to set
  129.      */
  130.     public void setSsrSolutionId(final int ssrSolutionId) {
  131.         this.ssrSolutionId = ssrSolutionId;
  132.     }

  133. }