ObservationDataSet.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.files.rinex.observation;

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

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


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

  27.     /** Observed satellite. */
  28.     private final SatInSystem satellite;

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

  31.     /** Event flag.
  32.      * @since 12.0
  33.      */
  34.     private final int eventFlag;

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

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

  39.     /**
  40.      * Simple constructor.
  41.      * @param satellite observed satellite
  42.      * @param tObs Observation date
  43.      * @param eventFlag event flag
  44.      * @param rcvrClkOffset Receiver clock offset (optional, 0 by default)
  45.      * @param observationData List of observation data
  46.      * @since 12.0
  47.      */
  48.     public ObservationDataSet(final SatInSystem satellite, final AbsoluteDate tObs, final int eventFlag,
  49.                               final double rcvrClkOffset, final List<ObservationData> observationData) {
  50.         this.satellite       = satellite;
  51.         this.tObs            = tObs;
  52.         this.eventFlag       = eventFlag;
  53.         this.observationData = observationData;
  54.         this.rcvrClkOffset   = rcvrClkOffset;
  55.     }

  56.     /** Get observed satellite.
  57.      * @return observed satellite
  58.      * @since 12.0
  59.      */
  60.     public SatInSystem getSatellite() {
  61.         return satellite;
  62.     }

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

  68.     /** Get the event flag.
  69.      * @return event flag
  70.      * @since 12.0
  71.      */
  72.     public int getEventFlag() {
  73.         return eventFlag;
  74.     }

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

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

  87. }