ObservationDataSet.java

  1. /* Copyright 2002-2022 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;

  18. import java.util.Collections;
  19. import java.util.List;

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


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

  26.     /** Rinex header associated with this data set. */
  27.     private final RinexObservationHeader header;

  28.     /** Satellite System. */
  29.     private final SatelliteSystem satelliteSystem;

  30.     /** PRN Number of the satellite observed. */
  31.     private final int prnNumber;

  32.     /** Date of the observation. */
  33.     private final AbsoluteDate tObs;

  34.     /** List of Observation data. */
  35.     private final List<ObservationData> observationData;

  36.     /** Receiver clock offset (seconds). */
  37.     private final double rcvrClkOffset;

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

  57.     /** Get the Rinex header associated with this data set.
  58.      * @return Rinex header associated with this data set
  59.      * @since 9.3
  60.      */
  61.     public RinexObservationHeader getHeader() {
  62.         return header;
  63.     }

  64.     /** Get Satellite System.
  65.      * @return satellite system of observed satellite
  66.      */
  67.     public SatelliteSystem getSatelliteSystem() {
  68.         return satelliteSystem;
  69.     }

  70.     /** Get PRN number.
  71.      * @return PRN number of the observed satellite
  72.      */
  73.     public int getPrnNumber() {
  74.         return prnNumber;
  75.     }

  76.     /** {@inheritDoc} */
  77.     @Override
  78.     public AbsoluteDate getDate() {
  79.         return tObs;
  80.     }

  81.     /** Get list of observation data.
  82.      * @return unmodifiable view of of observation data for the observed satellite
  83.      */
  84.     public List<ObservationData> getObservationData() {
  85.         return Collections.unmodifiableList(observationData);
  86.     }

  87.     /** Get receiver clock offset.
  88.      * @return receiver clock offset (it is optional, may be 0)
  89.      */
  90.     public double getRcvrClkOffset() {
  91.         return rcvrClkOffset;
  92.     }

  93. }