PhaseBias.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 phase bias data.
  20.  * @author Bryan Cazabonne
  21.  * @since 11.0
  22.  */
  23. public class PhaseBias {

  24.     /** GNSS signal and tracking mode identifier. */
  25.     private final int signalID;

  26.     /** Signal integer property. */
  27.     private final boolean isSignalInteger;

  28.     /** Signal Wide-Lane integer indicator. */
  29.     private final int signalWideLaneIntegerIndicator;

  30.     /** Signal discontinuity counter. */
  31.     private final int discontinuityCounter;

  32.     /** Phase bias for the corresponding signal identifier. */
  33.     private final double phaseBias;

  34.     /**
  35.      * Constructor.
  36.      * @param signalID GNSS signal and tracking mode identifier
  37.      * @param isSignalInteger true if signal has integer property
  38.      * @param signalWideLaneIntegerIndicator signal Wide-Lane integer indicator
  39.      * @param discontinuityCounter signal discontinuity counter
  40.      * @param phaseBias phase bias associated to the signal ID in meters
  41.      */
  42.     public PhaseBias(final int signalID, final boolean isSignalInteger,
  43.                      final int signalWideLaneIntegerIndicator,
  44.                      final int discontinuityCounter, final double phaseBias) {
  45.         // Initialize fields
  46.         this.signalID                       = signalID;
  47.         this.isSignalInteger                = isSignalInteger;
  48.         this.signalWideLaneIntegerIndicator = signalWideLaneIntegerIndicator;
  49.         this.discontinuityCounter           = discontinuityCounter;
  50.         this.phaseBias                      = phaseBias;
  51.     }

  52.     /**
  53.      * Get the GNSS signal and tracking mode identifier.
  54.      * @return the GNSS signal and tracking mode identifier
  55.      */
  56.     public int getSignalID() {
  57.         return signalID;
  58.     }

  59.     /**
  60.      * Get the flag indicating is signal has integer property.
  61.      * @return true is signal has integer property
  62.      */
  63.     public boolean isSignalInteger() {
  64.         return isSignalInteger;
  65.     }

  66.     /**
  67.      * Get the signal Wide-Lane integer indicator.
  68.      * <ul>
  69.      *   <li>0: No wide-lane with integer property for this signal or satellite</li>
  70.      *   <li>1: Signal belongs to group two of wide-lanes with integer property</li>
  71.      *   <li>2: Signal belongs to group one of wide-lanes with integer property</li>
  72.      *   <li>3: Signal belongs to group one of wide-lanes with integer property</li>
  73.      * </ul>
  74.      * @return the signal Wide-Lane indicator
  75.      */
  76.     public int getSignalWideLaneIntegerIndicator() {
  77.         return signalWideLaneIntegerIndicator;
  78.     }

  79.     /**
  80.      * Get the signal phase discontinuity counter.
  81.      * <p>
  82.      * Increased for every discontinuity in phase
  83.      * </p>
  84.      * @return the signal phase discontinuity counter
  85.      */
  86.     public int getDiscontinuityCounter() {
  87.         return discontinuityCounter;
  88.     }

  89.     /**
  90.      * Get the phase bias associated to the signal ID.
  91.      * @return the phase bias in meters
  92.      */
  93.     public double getPhaseBias() {
  94.         return phaseBias;
  95.     }

  96. }