SatelliteAntenna.java

  1. /* Copyright 2002-2018 CS Systèmes d'Information
  2.  * Licensed to CS Systèmes d'Information (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.Frequency;
  20. import org.orekit.gnss.SatelliteSystem;
  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 system. */
  32.     private final SatelliteSystem satelliteSystem;

  33.     /** PRN number. */
  34.     private final int prnNumber;

  35.     /** Satellite code. */
  36.     private final int satelliteCode;

  37.     /** COSPAR ID. */
  38.     private final String cosparID;

  39.     /** Start of validity. */
  40.     private final AbsoluteDate validFrom;

  41.     /** End of validity. */
  42.     private final AbsoluteDate validUntil;

  43.     /** Simple constructor.
  44.      * @param type antenna type
  45.      * @param sinexCode sinex code
  46.      * @param patterns frequencies patterns
  47.      * @param satelliteSystem satellite system
  48.      * @param prnNumber PRN number
  49.      * @param satelliteCode satellite code
  50.      * @param cosparID COSPAR ID
  51.      * @param validFrom start of validity
  52.      * @param validUntil end of validity
  53.      */
  54.     public SatelliteAntenna(final String type, final String sinexCode,
  55.                             final Map<Frequency, FrequencyPattern> patterns,
  56.                             final SatelliteSystem satelliteSystem, final int prnNumber,
  57.                             final int satelliteCode, final String cosparID,
  58.                             final AbsoluteDate validFrom, final AbsoluteDate validUntil) {
  59.         super(type, sinexCode, patterns);
  60.         this.satelliteSystem = satelliteSystem;
  61.         this.prnNumber       = prnNumber;
  62.         this.satelliteCode   = satelliteCode;
  63.         this.cosparID        = cosparID;
  64.         this.validFrom       = validFrom;
  65.         this.validUntil      = validUntil;
  66.     }

  67.     /** Get satellite system.
  68.      * @return satellite system
  69.      */
  70.     public SatelliteSystem getSatelliteSystem() {
  71.         return satelliteSystem;
  72.     }

  73.     /** Get PRN number.
  74.      * @return PRN number
  75.      */
  76.     public int getPrnNumber() {
  77.         return prnNumber;
  78.     }

  79.     /** Get satellite code.
  80.      * @return satellite code
  81.      */
  82.     public int getSatelliteCode() {
  83.         return satelliteCode;
  84.     }

  85.     /** Get COSPAR ID.
  86.      * @return COSPAR ID
  87.      */
  88.     public String getCosparID() {
  89.         return cosparID;
  90.     }

  91.     /** Get start of validity.
  92.      * @return start of validity
  93.      */
  94.     public AbsoluteDate getValidFrom() {
  95.         return validFrom;
  96.     }

  97.     /** Get end of validity.
  98.      * @return end of validity
  99.      */
  100.     public AbsoluteDate getValidFUntil() {
  101.         return validUntil;
  102.     }

  103. }