CombinedObservationDataSet.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.estimation.measurements.gnss;

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

  20. import org.orekit.gnss.SatelliteSystem;
  21. import org.orekit.time.AbsoluteDate;
  22. import org.orekit.time.TimeStamped;

  23. /**
  24.  * Combined observation data set.
  25.  * @author Bryan Cazabonne
  26.  * @since 10.1
  27.  */
  28. public class CombinedObservationDataSet implements TimeStamped {

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

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

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

  35.     /** List of Observation data. */
  36.     private final List<CombinedObservationData> observationData;

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

  39.     /**
  40.      * Simple constructor.
  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 combined observation data
  46.      */
  47.     public CombinedObservationDataSet(final SatelliteSystem satelliteSystem,
  48.                                       final int prnNumber, final AbsoluteDate tObs,
  49.                                       final double rcvrClkOffset, final List<CombinedObservationData> observationData) {
  50.         this.satelliteSystem = satelliteSystem;
  51.         this.prnNumber       = prnNumber;
  52.         this.tObs            = tObs;
  53.         this.observationData = observationData;
  54.         this.rcvrClkOffset   = rcvrClkOffset;
  55.     }

  56.     /** Get Satellite System.
  57.      * @return satellite system of observed satellite
  58.      */
  59.     public SatelliteSystem getSatelliteSystem() {
  60.         return satelliteSystem;
  61.     }

  62.     /** Get PRN number.
  63.      * @return PRN number of the observed satellite
  64.      */
  65.     public int getPrnNumber() {
  66.         return prnNumber;
  67.     }

  68.     /** {@inheritDoc} */
  69.     @Override
  70.     public AbsoluteDate getDate() {
  71.         return tObs;
  72.     }

  73.     /** Get list of observation data.
  74.      * @return unmodifiable view of of observation data for the observed satellite
  75.      */
  76.     public List<CombinedObservationData> getObservationData() {
  77.         return Collections.unmodifiableList(observationData);
  78.     }

  79.     /** Get receiver clock offset.
  80.      * @return receiver clock offset (it is optional, may be 0)
  81.      */
  82.     public double getRcvrClkOffset() {
  83.         return rcvrClkOffset;
  84.     }

  85. }