RtcmOrbitCorrectionData.java

  1. /* Copyright 2002-2024 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.rtcm.correction;

  18. import org.orekit.gnss.metric.messages.common.OrbitCorrection;

  19. /**
  20.  * Container for common data in RTCM orbit correction message type.
  21.  * @author Bryan Cazabonne
  22.  * @since 12.0
  23.  */
  24. public class RtcmOrbitCorrectionData extends RtcmCorrectionData {

  25.     /** GNSS IOD. */
  26.     private int gnssIod;

  27.     /** Container for SSR orbit correction data. */
  28.     private OrbitCorrection orbitCorrection;

  29.     /** Constructor. */
  30.     public RtcmOrbitCorrectionData() {
  31.         // Nothing to do ...
  32.     }

  33.     /**
  34.      * Get the GNSS IOD.
  35.      * <p>
  36.      * Users have to interpret the IOD value depending the
  37.      * satellite system of the current message.
  38.      * </p>
  39.      * @return the GNSS IOD
  40.      */
  41.     public int getGnssIod() {
  42.         return gnssIod;
  43.     }

  44.     /**
  45.      * Set the GNSS IOD.
  46.      * @param gnssIod the GNSS IOD to set
  47.      */
  48.     public void setGnssIod(final int gnssIod) {
  49.         this.gnssIod = gnssIod;
  50.     }

  51.     /**
  52.      * Get the orbit correction data.
  53.      * @return the orbit correction data
  54.      */
  55.     public OrbitCorrection getOrbitCorrection() {
  56.         return orbitCorrection;
  57.     }

  58.     /**
  59.      * Set the orbit correction data.
  60.      * @param orbitCorrection the data to set
  61.      */
  62.     public void setOrbitCorrection(final OrbitCorrection orbitCorrection) {
  63.         this.orbitCorrection = orbitCorrection;
  64.     }

  65. }