ObservationData.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;

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

  22.     /** Observed RINEX frequency. */
  23.     private ObservationType observationType;

  24.     /** Observed value. */
  25.     private double value;

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

  28.     /** Signal strength. */
  29.     private int signalStrength;

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

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

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

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

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

  66. }