ObservationData.java

  1. /* Copyright 2002-2023 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.files.rinex.observation;

  18. import org.orekit.gnss.ObservationType;

  19. /** Observation Data.
  20.  * @since 9.2
  21.  */
  22. public class ObservationData {

  23.     /** Observed RINEX frequency. */
  24.     private final ObservationType observationType;

  25.     /** Observed value. */
  26.     private final double value;

  27.     /** Loss of Lock Indicator (LLI). */
  28.     private final int lli;

  29.     /** Signal strength. */
  30.     private final int signalStrength;

  31.     /** Simple constructor.
  32.      * @param observationType observation type
  33.      * @param value observed value (may be {@code Double.NaN} if observation not available)
  34.      * @param lli Loss of Lock Indicator
  35.      * @param signalStrength signal strength
  36.      */
  37.     public ObservationData(final ObservationType observationType,
  38.                            final double value, final int lli, final int signalStrength) {
  39.         this.observationType = observationType;
  40.         this.value           = value;
  41.         this.lli             = lli;
  42.         this.signalStrength  = signalStrength;
  43.     }

  44.     /** Get the observation type.
  45.      * @return observation type
  46.      */
  47.     public ObservationType getObservationType() {
  48.         return observationType;
  49.     }

  50.     /** Get the observed value.
  51.      * @return observed value (may be {@code Double.NaN} if observation not available)
  52.      */
  53.     public double getValue() {
  54.         return value;
  55.     }

  56.     /** Get the Loss of Lock Indicator.
  57.      * @return Loss of Lock Indicator
  58.      */
  59.     public int getLossOfLockIndicator() {
  60.         return lli;
  61.     }

  62.     /** Get the signal strength.
  63.      * @return signal strength
  64.      */
  65.     public int getSignalStrength() {
  66.         return signalStrength;
  67.     }

  68. }