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