ObservationDataSet.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;

  18. import java.util.List;

  19. import org.orekit.time.AbsoluteDate;
  20. import org.orekit.time.TimeStamped;


  21. /** Observation Data set.
  22.  * @since 9.2
  23.  */
  24. public class ObservationDataSet implements TimeStamped {

  25.     /** Satellite System. */
  26.     private final SatelliteSystem satelliteSystem;

  27.     /** PRN Number of the satellite observed. */
  28.     private final int prnNumber;

  29.     /** Date of the observation. */
  30.     private AbsoluteDate tObs;

  31.     /** List of Observation data. */
  32.     private List<ObservationData> observationData;

  33.     /** Receiver clock offset (seconds). */
  34.     private double rcvrClkOffset;

  35.     /**
  36.      * Simple constructor.
  37.      * @param satelliteSystem Satellite system
  38.      * @param prnNumber PRN number
  39.      * @param tObs Observation date
  40.      * @param rcvrClkOffset Receiver clock offset (optional, 0 by default)
  41.      * @param observationData List of observation data
  42.      */
  43.     public ObservationDataSet(final SatelliteSystem satelliteSystem,
  44.                               final int prnNumber, final AbsoluteDate tObs,
  45.                               final double rcvrClkOffset, final List<ObservationData> observationData) {
  46.         this.satelliteSystem = satelliteSystem;
  47.         this.prnNumber       = prnNumber;
  48.         this.tObs            = tObs;
  49.         this.observationData = observationData;
  50.         this.rcvrClkOffset   = rcvrClkOffset;
  51.     }

  52.     /** Get Satellite System.
  53.      * @return satellite system of observed satellite
  54.      */
  55.     public SatelliteSystem getSatelliteSystem() {
  56.         return satelliteSystem;
  57.     }

  58.     /** Get PRN number.
  59.      * @return PRN number of the observed satellite
  60.      */
  61.     public int getPrnNumber() {
  62.         return prnNumber;
  63.     }

  64.     /** {@inheritDoc} */
  65.     @Override
  66.     public AbsoluteDate getDate() {
  67.         return tObs;
  68.     }

  69.     /** Get list of observation data.
  70.      * @return list of observation data for the observed satellite
  71.      */
  72.     public List<ObservationData> getObservationData() {
  73.         return observationData;
  74.     }

  75.     /** Get receiver clock offset.
  76.      * @return receiver clock offset (it is optional, may be 0)
  77.      */
  78.     public double getRcvrClkOffset() {
  79.         return rcvrClkOffset;
  80.     }

  81. }