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 * This class holds a QZSS almanac as read from YUMA files.
21 *
22 * @author Bryan Cazabonne
23 * @since 10.0
24 *
25 */
26 public class QZSSAlmanac extends AbstractAlmanac {
27
28 /** Source of the almanac. */
29 private String src;
30
31 /** Health status. */
32 private int health;
33
34 /**
35 * Constructor.
36 */
37 public QZSSAlmanac() {
38 super(GNSSConstants.QZSS_MU, GNSSConstants.QZSS_AV, GNSSConstants.QZSS_WEEK_NB);
39 }
40
41 /**
42 * Setter for 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 * Gets the source of this QZSS almanac.
54 *
55 * @return the source of this QZSS almanac
56 */
57 public String getSource() {
58 return src;
59 }
60
61 /**
62 * Sets the source of this GPS almanac.
63 *
64 * @param source the source of this GPS almanac
65 */
66 public void setSource(final String source) {
67 this.src = source;
68 }
69
70 /**
71 * Gets the Health status.
72 *
73 * @return the Health status
74 */
75 public int getHealth() {
76 return health;
77 }
78
79 /**
80 * Sets the health status.
81 *
82 * @param health the health status to set
83 */
84 public void setHealth(final int health) {
85 this.health = health;
86 }
87
88 }