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.files.rinex.observation;
18  
19  import org.orekit.gnss.ObservationType;
20  
21  /** Observation Data.
22   * @since 9.2
23   */
24  public class ObservationData {
25  
26      /** Observed RINEX frequency. */
27      private final ObservationType observationType;
28  
29      /** Observed value. */
30      private final double value;
31  
32      /** Loss of Lock Indicator (LLI). */
33      private final int lli;
34  
35      /** Signal strength. */
36      private final int signalStrength;
37  
38      /** Simple constructor.
39       * @param observationType observation type
40       * @param value observed value (may be {@code Double.NaN} if observation not available)
41       * @param lli Loss of Lock Indicator
42       * @param signalStrength signal strength
43       */
44      public ObservationData(final ObservationType observationType,
45                             final double value, final int lli, final int signalStrength) {
46          this.observationType = observationType;
47          this.value           = value;
48          this.lli             = lli;
49          this.signalStrength  = signalStrength;
50      }
51  
52      /** Get the observation type.
53       * @return observation type
54       */
55      public ObservationType getObservationType() {
56          return observationType;
57      }
58  
59      /** Get the observed value.
60       * @return observed value (may be {@code Double.NaN} if observation not available)
61       */
62      public double getValue() {
63          return value;
64      }
65  
66      /** Get the Loss of Lock Indicator.
67       * @return Loss of Lock Indicator
68       */
69      public int getLossOfLockIndicator() {
70          return lli;
71      }
72  
73      /** Get the signal strength.
74       * @return signal strength
75       */
76      public int getSignalStrength() {
77          return signalStrength;
78      }
79  
80  }