SatelliteAntenna.java

  1. /* Copyright 2002-2025 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.gnss.antenna;

  18. import java.util.Map;

  19. import org.orekit.gnss.RadioWave;
  20. import org.orekit.gnss.SatInSystem;
  21. import org.orekit.time.AbsoluteDate;

  22. /**
  23.  * GNSS satellite antenna model.
  24.  *
  25.  * @author Luc Maisonobe
  26.  * @since 9.2
  27.  * @see <a href="ftp://www.igs.org/pub/station/general/antex14.txt">ANTEX: The Antenna Exchange Format, Version 1.4</a>
  28.  *
  29.  */
  30. public class SatelliteAntenna extends Antenna {

  31.     /** Satellite in system.
  32.      * @since 13.0
  33.      */
  34.     private final SatInSystem satInSystem;

  35.     /** Satellite type.
  36.      * @since 9.3
  37.      */
  38.     private final SatelliteType satelliteType;

  39.     /** Satellite code. */
  40.     private final int satelliteCode;

  41.     /** COSPAR ID. */
  42.     private final String cosparID;

  43.     /** Start of validity. */
  44.     private final AbsoluteDate validFrom;

  45.     /** End of validity. */
  46.     private final AbsoluteDate validUntil;

  47.     /** Simple constructor.
  48.      * @param type antenna type
  49.      * @param sinexCode sinex code
  50.      * @param patterns frequencies patterns
  51.      * @param satInSystem satellite in system
  52.      * @param satelliteType satellite type
  53.      * @param satelliteCode satellite code
  54.      * @param cosparID COSPAR ID
  55.      * @param validFrom start of validity
  56.      * @param validUntil end of validity
  57.      */
  58.     public SatelliteAntenna(final String type, final String sinexCode,
  59.                             final Map<RadioWave, FrequencyPattern> patterns,
  60.                             final SatInSystem satInSystem,
  61.                             final SatelliteType satelliteType, final int satelliteCode,
  62.                             final String cosparID,
  63.                             final AbsoluteDate validFrom, final AbsoluteDate validUntil) {
  64.         super(type, sinexCode, patterns);
  65.         this.satInSystem   = satInSystem;
  66.         this.satelliteType = satelliteType;
  67.         this.satelliteCode = satelliteCode;
  68.         this.cosparID      = cosparID;
  69.         this.validFrom     = validFrom;
  70.         this.validUntil    = validUntil;
  71.     }

  72.     /** Get satellite in system.
  73.      * @return satellite in system
  74.      * @since 13.0
  75.      */
  76.     public SatInSystem getSatInSystem() {
  77.         return satInSystem;
  78.     }

  79.     /** Get satellite type.
  80.      * @return satellite type
  81.      * @since 9.3
  82.      */
  83.     public SatelliteType getSatelliteType() {
  84.         return satelliteType;
  85.     }

  86.     /** Get satellite code.
  87.      * @return satellite code
  88.      */
  89.     public int getSatelliteCode() {
  90.         return satelliteCode;
  91.     }

  92.     /** Get COSPAR ID.
  93.      * @return COSPAR ID
  94.      */
  95.     public String getCosparID() {
  96.         return cosparID;
  97.     }

  98.     /** Get start of validity.
  99.      * @return start of validity
  100.      */
  101.     public AbsoluteDate getValidFrom() {
  102.         return validFrom;
  103.     }

  104.     /** Get end of validity.
  105.      * @return end of validity
  106.      */
  107.     public AbsoluteDate getValidUntil() {
  108.         return validUntil;
  109.     }

  110. }