1   /* Copyright 2002-2021 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.propagation.analytical.gnss.data;
18  
19  /**
20   * Container for data contained in a GPS navigation message.
21   * @author Bryan Cazabonne
22   * @since 11.0
23   */
24  public class GPSNavigationMessage extends AbstractNavigationMessage implements GNSSOrbitalElements, GNSSClockElements {
25  
26      /** Issue of Data, Ephemeris. */
27      private int iode;
28  
29      /** Issue of Data, Clock. */
30      private int iodc;
31  
32      /** Group Delay Differential (s). */
33      private double tgd;
34  
35      /** The user SV accuracy (m). */
36      private double svAccuracy;
37  
38      /** Satellite health status. */
39      private double svHealth;
40  
41      /** Constructor. */
42      public GPSNavigationMessage() {
43          super(GNSSConstants.GPS_MU, GNSSConstants.GPS_AV, GNSSConstants.GPS_WEEK_NB);
44      }
45  
46      /**
47       * Getter for the Issue Of Data Ephemeris (IODE).
48       * @return the Issue Of Data Ephemeris (IODE)
49       */
50      public int getIODE() {
51          return iode;
52      }
53  
54      /**
55       * Setter for the Issue of Data Ephemeris.
56       * @param value the IODE to set
57       */
58      public void setIODE(final double value) {
59          // The value is given as a floating number in the navigation message
60          this.iode = (int) value;
61      }
62  
63      /**
64       * Getter for the Issue Of Data Clock (IODC).
65       * @return the Issue Of Data Clock (IODC)
66       */
67      public int getIODC() {
68          return iodc;
69      }
70  
71      /**
72       * Setter for the Issue of Data Clock.
73       * @param value the IODC to set
74       */
75      public void setIODC(final double value) {
76          // The value is given as a floating number in the navigation message
77          this.iodc = (int) value;
78      }
79  
80      /**
81       * Getter for the Group Delay Differential (s).
82       * @return the Group Delay Differential in seconds
83       */
84      public double getTGD() {
85          return tgd;
86      }
87  
88      /**
89       * Setter for the Group Delay Differential (s).
90       * @param time the group delay differential to set
91       */
92      public void setTGD(final double time) {
93          this.tgd = time;
94      }
95  
96      /**
97       * Getter for the user SV accuray (meters).
98       * @return the user SV accuracy
99       */
100     public double getSvAccuracy() {
101         return svAccuracy;
102     }
103 
104     /**
105      * Setter for the user SV accuracy.
106      * @param svAccuracy the value to set
107      */
108     public void setSvAccuracy(final double svAccuracy) {
109         this.svAccuracy = svAccuracy;
110     }
111 
112     /**
113      * Getter for the satellite health status.
114      * @return the satellite health status
115      */
116     public double getSvHealth() {
117         return svHealth;
118     }
119 
120     /**
121      * Setter for the satellite health status.
122      * @param svHealth the value to set
123      */
124     public void setSvHealth(final double svHealth) {
125         this.svHealth = svHealth;
126     }
127 
128 }