1   /* Copyright 2002-2024 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   * Class for BeiDou almanac.
21   *
22   * @see "BeiDou Navigation Satellite System, Signal In Space, Interface Control Document,
23   *      Version 2.1, Table 5-12"
24   *
25   * @author Bryan Cazabonne
26   * @since 10.0
27   *
28   */
29  public class BeidouAlmanac extends AbstractAlmanac {
30  
31      /** Health status. */
32      private int health;
33  
34      /**
35       * Build a new almanac.
36       */
37      public BeidouAlmanac() {
38          super(GNSSConstants.BEIDOU_MU, GNSSConstants.BEIDOU_AV, GNSSConstants.BEIDOU_WEEK_NB);
39      }
40  
41      /**
42       * Sets the Square Root of Semi-Major Axis (m^1/2).
43       * <p>
44       * In addition, this method set the value of the Semi-Major Axis.
45       * </p>
46       * @param sqrtA the Square Root of Semi-Major Axis (m^1/2)
47       */
48      public void setSqrtA(final double sqrtA) {
49          super.setSma(sqrtA * sqrtA);
50      }
51  
52      /**
53       * Sets the Inclination Angle at Reference Time (rad).
54       *
55       * @param inc the orbit reference inclination
56       * @param dinc the correction of orbit reference inclination at reference time
57       */
58      public void setI0(final double inc, final double dinc) {
59          super.setI0(inc + dinc);
60      }
61  
62      /**
63       * Gets the Health status.
64       *
65       * @return the Health status
66       */
67      public int getHealth() {
68          return health;
69      }
70  
71      /**
72       * Sets the health status.
73       *
74       * @param health the health status to set
75       */
76      public void setHealth(final int health) {
77          this.health = health;
78      }
79  
80  }