QZSSAlmanac.java

  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.  * This class holds a QZSS almanac as read from YUMA files.
  20.  *
  21.  * @author Bryan Cazabonne
  22.  * @since 10.0
  23.  *
  24.  */
  25. public class QZSSAlmanac extends AbstractAlmanac {

  26.     /** Source of the almanac. */
  27.     private String src;

  28.     /** Health status. */
  29.     private int health;

  30.     /**
  31.      * Constructor.
  32.      */
  33.     public QZSSAlmanac() {
  34.         super(GNSSConstants.QZSS_MU, GNSSConstants.QZSS_AV, GNSSConstants.QZSS_WEEK_NB);
  35.     }

  36.     /**
  37.      * Setter for the Square Root of Semi-Major Axis (m^1/2).
  38.      * <p>
  39.      * In addition, this method set the value of the Semi-Major Axis.
  40.      * </p>
  41.      * @param sqrtA the Square Root of Semi-Major Axis (m^1/2)
  42.      */
  43.     public void setSqrtA(final double sqrtA) {
  44.         super.setSma(sqrtA * sqrtA);
  45.     }

  46.     /**
  47.      * Gets the source of this QZSS almanac.
  48.      *
  49.      * @return the source of this QZSS almanac
  50.      */
  51.     public String getSource() {
  52.         return src;
  53.     }

  54.     /**
  55.      * Sets the source of this GPS almanac.
  56.      *
  57.      * @param source the source of this GPS almanac
  58.      */
  59.     public void setSource(final String source) {
  60.         this.src = source;
  61.     }

  62.     /**
  63.      * Gets the Health status.
  64.      *
  65.      * @return the Health status
  66.      */
  67.     public int getHealth() {
  68.         return health;
  69.     }

  70.     /**
  71.      * Sets the health status.
  72.      *
  73.      * @param health the health status to set
  74.      */
  75.     public void setHealth(final int health) {
  76.         this.health = health;
  77.     }

  78. }