RtcmCombinedCorrectionData.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.ClockCorrection;
  19. import org.orekit.gnss.metric.messages.common.OrbitCorrection;

  20. /**
  21.  * Container for common data in RTCM combined corrections message type.
  22.  * @author Bryan Cazabonne
  23.  * @since 12.0
  24.  */
  25. public class RtcmCombinedCorrectionData extends RtcmCorrectionData {

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

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

  30.     /** Container for clock correction data. */
  31.     private ClockCorrection clockCorrection;

  32.     /** Constructor. */
  33.     public RtcmCombinedCorrectionData() {
  34.         // Nothing to do ...
  35.     }

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

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

  54.     /**
  55.      * Get the orbit correction data.
  56.      * @return the orbit correction data
  57.      */
  58.     public OrbitCorrection getOrbitCorrection() {
  59.         return orbitCorrection;
  60.     }

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

  68.     /**
  69.      * Get the clock correction data.
  70.      * @return the clock correction data
  71.      */
  72.     public ClockCorrection getClockCorrection() {
  73.         return clockCorrection;
  74.     }

  75.     /**
  76.      * Set the clock correction data.
  77.      * @param clockCorrection the data to set
  78.      */
  79.     public void setClockCorrection(final ClockCorrection clockCorrection) {
  80.         this.clockCorrection = clockCorrection;
  81.     }

  82. }